Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

warning: Skipping data file with no valid points

3,136 views
Skip to first unread message

souadj...@gmail.com

unread,
Jan 13, 2015, 6:54:17 AM1/13/15
to
Hey,
i try plot two simple curve but i can't i have this error "warning: Skipping data file with no valid points", can you help me please?
thanks

gnuplot> plot '-' with lines
input data ('e' ends) > 1
input data ('e' ends) > 2
input data ('e' ends) > 3
input data ('e' ends) > 4
input data ('e' ends) > e

gnuplot> replot '-' with lines
input data ('e' ends) > 1
input data ('e' ends) > 2
input data ('e' ends) > 3
input data ('e' ends) > 4
input data ('e' ends) > e
input data ('e' ends) > e
warning: Skipping data file with no valid points

Hans-Bernhard Bröker

unread,
Jan 13, 2015, 1:04:33 PM1/13/15
to
Am 13.01.2015 um 12:54 schrieb souadj...@gmail.com:

> i try plot two simple curve but i can't i have this error "warning:
> Skipping data file with no valid points",

That's not an error; it's a warning.

> can you help me please?

That's rather hard to do, because it's unclear what you were trying to
achieve. One possibility is that you've misunderstood what the meaning
and purpose of "replot" is.

souadj...@gmail.com

unread,
Jan 16, 2015, 4:31:39 PM1/16/15
to
I just want to add a new curve

Karl

unread,
Jan 18, 2015, 2:17:40 PM1/18/15
to
Am 16.01.2015 um 22:31 schrieb souadj...@gmail.com:
> I just want to add a new curve

Upon "replot", you have to supply the first dataset again:

plot "-"
1
2
3
e

replot "-"
1
2
3
e
4
5
6
e


Alternatively, you can plot both datasets at once (this is actually how
"replot" works). :

plot "-", "-"
1
2
3
e
4
5
6
e

Or plot the first dataset to a temporary file (using "set table") and
reuse that instead of replotting.

If you have gp5.0, you should also check "help inline data", perhaps
that new function might be useful.


souadj...@gmail.com

unread,
Jan 18, 2015, 4:50:39 PM1/18/15
to
sorry i will try to explain my case
i use gnu plot il my c++ project, i get data in real time, i treat it and draw it. i can't save precedent data, so i want if gnuplot can append a new curve in the current window or not?
and thank you for your response

Karl

unread,
Jan 18, 2015, 5:54:53 PM1/18/15
to
Am 18.01.2015 um 22:50 schrieb souadj...@gmail.com:
> sorry i will try to explain my case
> i use gnu plot il my c++ project, i get data in real time, i treat it and draw it. i can't save precedent data, so i want if gnuplot can append a new curve in the current window or not?
> and thank you for your response

Replot to the current plot, if you send you data over stdin, no. (There
is the "volatile" option, but you cannot add another plot with "replot"
after using it.)

You could do something like this:

-------------
plot "-" title "first part only"
...
e

set table "tempfile"
replot # doesn´t reread the data if you don´t add another plot
unset table

plot "tempfile" title "first part", "-" title "second part"
.....
e
--------------

If you can use the new gp50, you don´t need a temporary file but can use
inline data instead, check "help inline data".

ganesh....@seagate.com

unread,
Sep 7, 2015, 6:54:24 AM9/7/15
to
Before you plot any graph, try typing this "set datafile separator ','" excluding double qoutes...will work i guess

sfeam

unread,
Sep 8, 2015, 2:18:13 AM9/8/15
to
ganesh....@seagate.com wrote:

> On Tuesday, January 13, 2015 at 5:24:17 PM UTC+5:30,
> souadj...@gmail.com wrote:
>> Hey,
>> i try plot two simple curve but i can't i have this error "warning:
>> Skipping data file with no valid points", can you help me please?
>> thanks
>>
>> gnuplot> plot '-' with lines
>> input data ('e' ends) > 1
>> input data ('e' ends) > 2
>> input data ('e' ends) > 3
>> input data ('e' ends) > 4
>> input data ('e' ends) > e
>>
>> gnuplot> replot '-' with lines
>> input data ('e' ends) > 1
>> input data ('e' ends) > 2
>> input data ('e' ends) > 3
>> input data ('e' ends) > 4
>> input data ('e' ends) > e
>> input data ('e' ends) > e
>> warning: Skipping data file with no valid points

The second plot (the one that consists only of the end-of-input
marker 'e') indeed contains no valid points.

Issuing a 'replot' command with inline data is almost certainly
not the best way to do whatever it is you are trying.

Maybe
$data1 << EOD
1
2
3
4
4
EOD

plot $data1 with lines

plot $data1, <whatever your 2nd plot was supposed to be>
0 new messages