I am using gnuplot 5.0 patch 5.
I'm running in Windows 7.
I'm plotting from a text data file containing multiple data blocks.
The help file says to separate blocks with 2 blank lines. I'm finding that 1 blank line works, but not 2.
The documentation also says one blank line within a block will cause that point to be skipped and produce a gap in the plotted curve. But of course that does not work for me, and the line has to have NaN's.
Is this a difference between Windows and Linux?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
An update after more testing.
This command plots blocks 0 and 1, and seems to want a single line separating blocks.
splot '' every :::0::0 with l lc 8 , '' every :::1::1 with lines lw 3 lc 7
But this command want two lines.
splot '' index 0 with l lc 8 , '' index 1 with lines lw 3 lc 7
Is this the way it's supposed to work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After studying EVERY and INDEX on pages 86-88 in gnuplot.pdf, I think I answered my own question. datasets are separated by 2 blank lines, and datablocks within one dataset are separated by single blank lines.
What are the differences between plot and splot to which you refer? Can you point me to pages in the manual or a demo example that illustrates this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fine, except that you found an old on-line copy of the manual for a version of the program from 20 years ago. I suggest using a current copy of the manual from the the distribution itself or online from the gnuplot web site: http://gnuplot.sourceforge.net/docs_5.0/gnuplot.pdf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using gnuplot 5.0 patch 5.
I'm running in Windows 7.
I'm plotting from a text data file containing multiple data blocks.
The help file says to separate blocks with 2 blank lines. I'm finding that 1 blank line works, but not 2.
The documentation also says one blank line within a block will cause that point to be skipped and produce a gap in the plotted curve. But of course that does not work for me, and the line has to have NaN's.
Is this a difference between Windows and Linux?
No, it doesn't. It says to separate data sets that way. Precise use of words is important.
No. There's some difference between 'plot' and 'splot', though.
I forgot to say that I'm plotting my data blocks using splot.
An update after more testing.
This command plots blocks 0 and 1, and seems to want a single line separating blocks.
splot '' every :::0::0 with l lc 8 , '' every :::1::1 with lines lw 3 lc 7
But this command want two lines.
splot '' index 0 with l lc 8 , '' index 1 with lines lw 3 lc 7
Is this the way it's supposed to work?
After studying EVERY and INDEX on pages 86-88 in gnuplot.pdf, I think I answered my own question. datasets are separated by 2 blank lines, and datablocks within one dataset are separated by single blank lines.
What are the differences between plot and splot to which you refer? Can you point me to pages in the manual or a demo example that illustrates this?
I stumbled onto an answer to my last questipon while reading another thread.
Differences between plot and splot are discussed on the following page:
http://theochem.ki.ku.dk/on_line_docs/gnuplot/gnuplot_36.html
Fine, except that you found an old on-line copy of the manual for a version of the program from 20 years ago. I suggest using a current copy of the manual from the the distribution itself or online from the gnuplot web site:
http://gnuplot.sourceforge.net/docs_5.0/gnuplot.pdf