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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
On Saturday, 15 August 2015 09:57:14 PM peterp wrote:
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 joinpoints 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
.Thank you very much, Ethan!
Last edit: peterp 2015-08-16