X-Received: by 10.66.142.135 with SMTP id rw7mr17303108pab.20.1456840684797; Tue, 01 Mar 2016 05:58:04 -0800 (PST) X-Received: by 10.182.125.225 with SMTP id mt1mr15886obb.17.1456840684732; Tue, 01 Mar 2016 05:58:04 -0800 (PST) Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!ok5no5518504igc.0!news-out.google.com!pn7ni6690igb.0!nntp.google.com!hb3no10390329igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 1 Mar 2016 05:58:04 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.65.1.1; posting-account=M1wgSgoAAAC5SFuSzW82Oxac6m4PiLVc NNTP-Posting-Host: 188.65.1.1 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8bd1c7cb-da40-4d20-a789-4e5c6ebd31a0@googlegroups.com> Subject: chart disappears when i add xrange / yrange to binary array plot of radio spectrogram data From: =?ISO-8859-1?Q?Mario_Cannistr=E0?= Injection-Date: Tue, 01 Mar 2016 13:58:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.graphics.apps.gnuplot:3244 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=3D8000x79 (for this test) where 8000 are the frequency bin= s and 79 are the scans made and recorded. Real files will reach at least 100 MB size and this is why they are in bina= ry 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 la= bels correctly represented but the data area of the plot simply disappears. Please see https://www.dropbox.com/s/n022h60lyvf57t1/plot-showing-spectrog= ram.png?dl=3D0 for the plot with data and https://www.dropbox.com/s/c8c9y= hoy1tkqbhq/plot-showing-labels.png?dl=3D0 for the plot with labels only. The binary input file is here: https://www.dropbox.com/s/qrd6wu779pxh2fg/U= TC20160228082732-Jupiter-88.000M-96.000M-4000-n100-g22-e1m.bin?dl=3D0 The gnuplot script should be run with the following command line: gnuplot -e "scanstart=3D'160228082733'" -e "scanend=3D'160228082833'" -e fs= tart=3D88000000 -e fend=3D95999000 -e fstep=3D1000 -e singlescandur=3D0.576= 923 -e "matorg=3D'(8000,79)'" -e "outname=3D'UTC20160228082732-Jupiter-88.0= 00M-96.000M-4000-n100-g22-e1m'" -e globmin=3D0.000000 -e globmax=3D0.000000= plotbin.gnu Could someone here in the group please help me out ? I've been fighting ag= ainst this problem for at least 2 days now... Kind regards, Mario gnuplot script below (also available at https://www.dropbox.com/s/q91nkiwm= cvocbfu/plotbin.gnu?dl=3D0 ) #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 permuta= tions"; 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-yel= low-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 =3D "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 =3D '["'.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=3D@matorg rotation=3D-90d format=3D'%float= ' with image