Path: csiph.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Date: Tue, 1 Mar 2016 23:29:15 +0100 Lines: 33 Message-ID: References: <8bd1c7cb-da40-4d20-a789-4e5c6ebd31a0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.dfncis.de N8vr286v1IuMagP6BkPpVAOa2leYwt7Icb5Fs/+KgEjDDCfYmJog6LRtEb Cancel-Lock: sha1:1V19fmFpt8IELcT4mIh0hbj8Gqg= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:3248 Am 01.03.2016 um 22:07 schrieb Mario Cannistrà: > If I correctly understand, xrange is actually a filter that I'm > applying on x axis values (values that I should keep in the file, > currently absent). Yes. A fixed axis range defines the range of the plot itself, and thereby filters the corresponding coordinate of the data and functions being plotted. > Actually I don't understand where the x values 01:06:00 to 01:07:18 > are coming from, since i intentionally stored only the Z values in > the file. I suspect the fact that 01:06:00 h equals 4000 seconds past midnight, which just so happends to be half the number of samples in one dimension of your dataset, might have something do do with that. > About my next tentative: should I change the binary file structure to > contain all info (x,y,z = time, frequencies,z), which format should I > use for time ? would be ok a 32 bit integer ? I remember of binary > "matrix" format I've read about, would that be fine and able to > contain integers for x,y and float for z ? No. You would have to do a double-precision matrix, with %double for all values. See "help binary" for the gory details. > As an alternative to all that: would it be possible to just produce > all the labels with some loop, avoiding usage of "xrange" so that i > can get the plot with the current binary file structure? The much simpler approach would probably be to apply "help using".