Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3244
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2016-03-01 05:58 -0800 |
| Message-ID | <8bd1c7cb-da40-4d20-a789-4e5c6ebd31a0@googlegroups.com> (permalink) |
| Subject | chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data |
| From | Mario Cannistrà <mariocannistra@gmail.com> |
Hello. I need to plot datafiles in binary format with radio spectrogram data. They are created as a sequence of float values and I'm successfully reading them as array=8000x79 (for this test) where 8000 are the frequency bins and 79 are the scans made and recorded. Real files will reach at least 100 MB size and this is why they are in binary format and not in csv. For the same reason I'm storing only z values and NO x,y (timestamps, frequencies). Please find below the gnuplot file. When I try to uncomment the xrange and yrange statements, i get the axis labels correctly represented but the data area of the plot simply disappears. Please see https://www.dropbox.com/s/n022h60lyvf57t1/plot-showing-spectrogram.png?dl=0 for the plot with data and https://www.dropbox.com/s/c8c9yhoy1tkqbhq/plot-showing-labels.png?dl=0 for the plot with labels only. The binary input file is here: https://www.dropbox.com/s/qrd6wu779pxh2fg/UTC20160228082732-Jupiter-88.000M-96.000M-4000-n100-g22-e1m.bin?dl=0 The gnuplot script should be run with the following command line: gnuplot -e "scanstart='160228082733'" -e "scanend='160228082833'" -e fstart=88000000 -e fend=95999000 -e fstep=1000 -e singlescandur=0.576923 -e "matorg='(8000,79)'" -e "outname='UTC20160228082732-Jupiter-88.000M-96.000M-4000-n100-g22-e1m'" -e globmin=0.000000 -e globmax=0.000000 plotbin.gnu Could someone here in the group please help me out ? I've been fighting against this problem for at least 2 days now... Kind regards, Mario gnuplot script below (also available at https://www.dropbox.com/s/q91nkiwmcvocbfu/plotbin.gnu?dl=0 ) #load './default.plt' #load './parula.pal' #set palette model RGB rgbformulae 7,5,15 #set palette model XYZ rgbformulae 7,5,15 #set palette rgb 7,5,15 #"traditional pm3d\n(black-blue-red-yellow)"; splot g(x) #set palette rgb 3,11,6 #"green-red-violet"; splot g(x) #set palette rgb 23,28,3 #"ocean (green-blue-white)\ntry also other permutations"; splot g(x) set palette rgb 21,22,23 #"hot (black-red-yellow-white)"; splot g(x) #set palette rgb 30,31,32 #"color printable on gray\n(black-blue-violet-yellow-white)"; splot g(x) #set palette rgb 33,13,10 #"rainbow (blue-green-yellow-red)"; splot g(x) #set palette rgb 34,35,36 #"AFM hot (black-red-yellow-white)"; splot g(x) #set palette model HSV # #set palette rgb 3,2,2 #"HSV model\n(red-yellow-green-cyan-blue-magenta-red)"; splot g(x) #set pal gray #"gray palette"; splot g(x) #set grid lc rgbcolor "#BBBBBB" unset key mytitle = "scan: ".outname set title mytitle set xlabel 'UTC time' set ylabel 'Frequency (MHz)' set cblabel 'Signal power' set term png size 3661, 3000 font "arial,36" set tics out set autoscale fix rangeonx = '["'.scanstart.'":"'.scanend.'"]' set xdata time set timefmt '%y%m%d%H%M%S' set format x "%H:%M:%S" #set xrange @rangeonx set xtics 5 nomirror rotate set format y "%.1s" #set yrange [fstart:fend] set ytics nomirror set output outname.".png" plot outname.".bin" binary array=@matorg rotation=-90d format='%float' with image
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Mario Cannistrà <mariocannistra@gmail.com> - 2016-03-01 05:58 -0800
Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Mario Cannistrà <mariocannistra@gmail.com> - 2016-03-01 06:07 -0800
Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-03-01 20:54 +0100
Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Mario Cannistrà <mariocannistra@gmail.com> - 2016-03-01 13:07 -0800
Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-03-01 23:29 +0100
Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Mario Cannistrà <mariocannistra@gmail.com> - 2016-03-02 01:08 -0800
Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Karl Ratzsch <mail.kfr@gmx.net> - 2016-03-02 00:33 +0100
Re: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data Mario Cannistrà <mariocannistra@gmail.com> - 2016-03-02 01:13 -0800
csiph-web