|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Newbie y-axis range questionHi,
I want the y-axis range to have the range of the data in the fourth column for a plot of the first column on the x-axis and the fourth column on the y-asis. And example of the data: 0.01 150 7.0 4.666666666666667 0.05 150 5.0 3.3333333333333335 0.1 150 11.0 7.333333333333333 0.2 150 18.0 12.0 But whatever I try I always get the y-range to be [0: max-of-the-second-column]. Apparently GnuPlot takes the second column as y-axis. Is it possible to make GnuPlot take the fourth column as the range for the y-axes? TIA -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Gnuplot-info mailing list Gnuplot-info@... https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
|
Re: Newbie y-axis range questionplot 'datafilename' using 1:4
see: http://www.gnuplot.info/docs/node100.html http://www.gnuplot.info/docs/node101.html http://www.gnuplot.info/docs/node133.html you should read one of the tutorials http://www.gnuplot.info/help.html or have a look at p.k.janerts book (the 2nd chapter, explaining exactly what you need, can be downloaded freely)
|
|
|
Re: Newbie y-axis range questionHi Thomas,
Thanks for the response. On Thu, 2009-10-15 at 02:36 -0700, Thomas Sefzick wrote: > plot 'datafilename' using 1:4 I have tried (even before your anser): plot 'data.plt' using 1:4, '' u 2:xtic(1), '' u 4 title 'error%' with lines where data.plt is the filename in the current directory But that does not do what I expected. It generated the picture you can see here: http://trac.askesis.nl/downloads/iris_with_shuffle_error.jpg Based on the file you can see here: iris_with_shuffle_error.plt TIA -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Gnuplot-info mailing list Gnuplot-info@... https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
|
Re: Newbie y-axis range questionyou get exactly what you request:
plot 'data.plt' using 1:4, '' u 2:xtic(1), '' u 4 title 'error%' with lines in detail: > plot 'data.plt' using 1:4 uses column '1' for x and column '4' for 'y' your x-values are in the range [0:1] > '' u 2:xtic(1) uses the datafile-linenumber for 'x', column '2' for 'y', and column '1' for xtics labels. now your x-range is [0:11] because you have 12 datalines, the xtic labels are re-named '0.05' to '1.0' (taken from column '1'). the y-values are all '150' (taken from column '2') > '' u 4 title 'error%' with lines uses the datafile-linenumber for 'x', column '4' for 'y' here you plot the data like in the 1st plot but stretched because the datafile linenumbers range from '0' to '11'
|
| Free embeddable forum powered by Nabble | Forum Help |