Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3227

X-axis display!

Newsgroups comp.graphics.apps.gnuplot
Date 2016-02-11 22:23 -0800
Message-ID <1e9ccb7d-a448-43e0-9afe-85b435c77042@googlegroups.com> (permalink)
Subject X-axis display!
From kunrooney@gmail.com

Show all headers | View raw


My two files are:
0.4 95.1 
0.8 94.9 
1.2 92.2 
1.6 91.6 
2.0 89.7 

0.4 111.8 
0.8 110.9 
1.2 108.2 
1.6 105.6 
2.0 104.7 

My gnuplot code is 
set terminal png
set output 'test.png'
set timefmt "%S"
set key top left
set xdata time
set format x "%f"
set autoscale
set format y "%.f"
set xr [0.4:2.0]
set yr [85:115]
set grid
set style data linespoints

plot  "1.txt" using 1:2 lw 1.5 pt 3 title 'Sample1',\
                "2.txt" using 1:2 lw 1.5 pt 4 title 'Sample2',\


The y-axis is fine but on x-axis i am getting display like this:
00:00 00:00 00:01 instead of 0.4, 0.8, 1.2 etc.

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

X-axis display! kunrooney@gmail.com - 2016-02-11 22:23 -0800
  Re: X-axis display! Jörg Buchholz <bookwood4new@freenet.de> - 2016-02-12 08:33 +0100
    Re: X-axis display! Kaustubh Nabar <kunrooney@gmail.com> - 2016-02-11 23:43 -0800
      Re: X-axis display! Kaustubh Nabar <kunrooney@gmail.com> - 2016-02-11 23:54 -0800
  Re: X-axis display! Karl Ratzsch <mail.kfr@gmx.net> - 2016-02-12 08:38 +0100

csiph-web