|
From: rhubbell <rhu...@ih...> - 2008-11-29 19:22:53
|
One of the things I've noticed is that the gnuplot demos I find don't have the actual data files used to create the plots. Since gnuplot has its own language, I find that as with any other language, language examples to be the best way to learn. So am I missing the data files? I just use the gnuplot.info site to look at the examples. Maybe there's a better way. |
|
From: Thomas S. <t.s...@fz...> - 2008-11-29 19:43:55
|
if you download gnuplot, either as source or binary, it comes with a demo directory with all the scripts and data files in it. -- View this message in context: http://www.nabble.com/gnuplot-language-tp20750468p20750674.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: rhubbell <rhu...@ih...> - 2008-11-30 16:47:41
|
Thanks, that does help, my problem partly stems from the fact that many (most) of the demos are incomplete in that they simply plot functions. The hard part is taking data from files and plotting that information. Ideally the demos would do both, plot a function and plot experimental data. On Sat, 2008-11-29 at 11:43 -0800, Thomas Sefzick wrote: > if you download gnuplot, either as source or binary, it comes > with a demo directory with all the scripts and data files in it. > |
|
From: rhubbell <rhu...@ih...> - 2008-11-30 19:03:17
|
For example taking this demo and making it into a demo that uses experimental data would provide an excellent example of using data files. http://gnuplot.sourceforge.net/demo_4.2/surface1.16.gnu On Sun, 2008-11-30 at 08:47 -0800, rhubbell wrote: > Thanks, that does help, my problem partly stems from the fact that many > (most) of the demos are incomplete in that they simply plot functions. > > The hard part is taking data from files and plotting that information. > Ideally the demos would do both, plot a function and plot experimental > data. > > > On Sat, 2008-11-29 at 11:43 -0800, Thomas Sefzick wrote: > > if you download gnuplot, either as source or binary, it comes > > with a demo directory with all the scripts and data files in it. |
|
From: Thomas S. <t.s...@fz...> - 2008-11-30 19:39:06
|
'surface1.16.gnu' simply doesn't work with data, because it works in parametric mode using 2 parameters (u,v) which require the use of functions to map to (x,y,z), producing vertical surfaces which in non-parametric mode are not possible to plot. data from a file are read as (x,y,z) triples, therefore 'splot' works in non-parametric mode, so there is only one z-value per (x,y) coordinate. this means, no way to produce vertical surfaces which need two z-values per (x,y) coordinate. > For example taking this demo and making it into a demo that uses > experimental data would provide an excellent example > of using data files. > > http://gnuplot.sourceforge.net/demo_4.2/surface1.16.gnu -- View this message in context: http://www.nabble.com/gnuplot-language-tp20750468p20761312.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: rhubbell <rhu...@ih...> - 2008-11-30 23:04:20
|
Ok, this makes more sense now. I'm sure it's obvious to some. Was not obvious to me. I'm still trying to understand parametric mode. I would like to be able to create a plot like that using experimental data. Could one z-value be assigned zero all the time and the other z-value be the z from the x,y,z triple from the file? Maybe I'm going about this all wrong. The data is like this: col. 1 = date/time col. 2-25 = data for hours 0-23 So the data are in rows. Does gnuplot not like data in rows? I can massage into columns but that makes the data files 4 * (row oriented data file in bytes) On Sun, 2008-11-30 at 11:39 -0800, Thomas Sefzick wrote: > 'surface1.16.gnu' simply doesn't work with data, because > it works in parametric mode using 2 parameters (u,v) which > require the use of functions to map to (x,y,z), producing > vertical surfaces which in non-parametric mode are not > possible to plot. > > data from a file are read as (x,y,z) triples, therefore 'splot' > works in non-parametric mode, so there is only one z-value > per (x,y) coordinate. > this means, no way to produce vertical surfaces which need > two z-values per (x,y) coordinate. > > > For example taking this demo and making it into a demo that uses > > experimental data would provide an excellent example > > of using data files. > > > > http://gnuplot.sourceforge.net/demo_4.2/surface1.16.gnu > |