Menu

question about data files and data blocks

Help
2017-03-11
2017-03-11
  • Brian Murphy

    Brian Murphy - 2017-03-11

    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?

     
    • Hans-Bernhard Broeker

      The help file says to separate blocks with 2 blank lines.

      No, it doesn't. It says to separate data sets that way. Precise use of words is important.

      Is this a difference between Windows and Linux?

      No. There's some difference between 'plot' and 'splot', though.

       
  • Brian Murphy

    Brian Murphy - 2017-03-11

    I forgot to say that I'm plotting my data blocks using splot.

     
  • Brian Murphy

    Brian Murphy - 2017-03-11

    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?

     
  • Brian Murphy

    Brian Murphy - 2017-03-12

    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?

     
  • Brian Murphy

    Brian Murphy - 2017-03-20

    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

     
    • Ethan Merritt

      Ethan Merritt - 2017-03-20

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.