Menu

trouble plotting several data sets separately

Help
peterp
2015-08-15
2015-08-16
  • peterp

    peterp - 2015-08-15

    Hi everyone,
    I'm having troubles plotting separately several data files. I need to do this because I have a very large data file with many data sets and I have to plot and fit just few of them. Since for some reason I was not able to do it, I created a very simple file, which I called 'trial.dat' and looks like the following, and made some trials with it:
    1.0 2.0
    3.0 2.0
    5.0 2.0

    2.0 3.0
    3.0 3.0
    4.0 3.0

    Now, if I use the command
    p 'trial.dat' i 1 w l
    I get the error
    warning: Skipping data file with no valid points
    and if I type
    p 'trial.dat' i 0 w l
    both data sets are plotted.
    Can somebody explain to me what I'm doing wrong?
    Thank you in advance.

     
    • Ethan Merritt

      Ethan Merritt - 2015-08-16

      On Saturday, 15 August 2015 09:57:14 PM peterp wrote:

      Hi everyone,
      I'm having troubles plotting separately several data files. I need to do this because I have a very large data file with many data sets and I have to plot and fit just few of them. Since for some reason I was not able to do it, I created a very simple file, which I called 'trial.dat' and looks like the following, and made some trials with it:
      1.0 2.0
      3.0 2.0
      5.0 2.0

      2.0 3.0
      3.0 3.0
      4.0 3.0

      Now, if I use the command
      p 'trial.dat' i 1 w l
      I get the error
      warning: Skipping data file with no valid points
      and if I type
      p 'trial.dat' i 0 w l
      both data sets are plotted.
      Can somebody explain to me what I'm doing wrong?

      From "help datafile":

      In datafiles, blank records (records with no characters other than blanks and
      a newline and/or carriage return) are significant.

      Single blank records designate discontinuities in a plot; no line will join
      points separated by a blank records (if they are plotted with a line style).

      Two blank records in a row indicate a break between separate data sets.
      See index.

      Ethan
      

      Thank you in advance.


      trouble plotting several data sets separately


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/gnuplot/discussion/5925/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • peterp

    peterp - 2015-08-16

    Thank you very much, Ethan!

     

    Last edit: peterp 2015-08-16

Log in to post a comment.