Error Message when Plotting

View: New views
3 Messages — Rating Filter:   Alert me  

Error Message when Plotting

by canucks357 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey guys,
This is my first post here. I would really appreciate any insight you could give me.

Basically I am running GNU Plot on an "input file" which basically fits curves to a datafile. I was curious if someone could help me with an error message I keep getting.

Here is the end of the code and the message:
plot [ 14 : 90 ][ 15: 15 ] 'data.dat' u 0:12 ,l(x),l1(x),l2(x),l3(x),b(x)
"inputfile.txt", line 34: Can't plot with an empty y range!


"data.dat" is the data file that is being plotted using the fit parameters l(x),l1(x) etc.

How would I compensate for the "empty y range" and allow for the plots to be created?

I greatly appreciate any help. I am new to GNU Plot. The input file was given to me and didn't really work. I am still unsure as to what the [XX:XX][YY:YY] terms mean (I know [14:90] is the columns to plot but not sure what the [15:15] corresponds to as the data is a matrix 12 rows wide).

Re: Error Message when Plotting

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

canucks357 wrote:
Hey guys,
This is my first post here. I would really appreciate any insight you could give me.

Basically I am running GNU Plot on an "input file" which basically fits curves to a datafile. I was curious if someone could help me with an error message I keep getting.

Here is the end of the code and the message:
plot [ 14 : 90 ][ 15: 15 ] 'data.dat' u 0:12 ,l(x),l1(x),l2(x),l3(x),b(x)
"inputfile.txt", line 34: Can't plot with an empty y range!


"data.dat" is the data file that is being plotted using the fit parameters l(x),l1(x) etc.

How would I compensate for the "empty y range" and allow for the plots to be created?

I greatly appreciate any help. I am new to GNU Plot. The input file was given to me and didn't really work. I am still unsure as to what the [XX:XX][YY:YY] terms mean (I know [14:90] is the columns to plot but not sure what the [15:15] corresponds to as the data is a matrix 12 rows wide).
plot [xmin:xmax] [ymin:ymax] ...

[xmin:xmax] is the x-range to be plotted
[ymin:ymax] is the y-range to be plotted, so [15:15] doesn't make any sense

you should have a look at the manual:
http://www.gnuplot.info/docs/node100.html
http://www.gnuplot.info/docs/node143.html

Re: Error Message when Plotting

by canucks357 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank-you so much. It is weird because it was sent to me with the [15:15] I should have questioned it further. Thanks again. All the best!

Thomas Sefzick wrote:
canucks357 wrote:
Hey guys,
This is my first post here. I would really appreciate any insight you could give me.

Basically I am running GNU Plot on an "input file" which basically fits curves to a datafile. I was curious if someone could help me with an error message I keep getting.

Here is the end of the code and the message:
plot [ 14 : 90 ][ 15: 15 ] 'data.dat' u 0:12 ,l(x),l1(x),l2(x),l3(x),b(x)
"inputfile.txt", line 34: Can't plot with an empty y range!


"data.dat" is the data file that is being plotted using the fit parameters l(x),l1(x) etc.

How would I compensate for the "empty y range" and allow for the plots to be created?

I greatly appreciate any help. I am new to GNU Plot. The input file was given to me and didn't really work. I am still unsure as to what the [XX:XX][YY:YY] terms mean (I know [14:90] is the columns to plot but not sure what the [15:15] corresponds to as the data is a matrix 12 rows wide).
plot [xmin:xmax] [ymin:ymax] ...

[xmin:xmax] is the x-range to be plotted
[ymin:ymax] is the y-range to be plotted, so [15:15] doesn't make any sense

you should have a look at the manual:
http://www.gnuplot.info/docs/node100.html
http://www.gnuplot.info/docs/node143.html