Mirko.Vukovic@[EMAIL PROTECTED]
wrote:
> Hi,
>
> I am trying to use replot to add curves to my plot. The following
> gives me an error on the command line:
>
> gnuplot> plot '-'
> input data ('e' ends) > 1 2
> input data ('e' ends) > 3 4
> input data ('e' ends) > 5 6
> input data ('e' ends) > e
> gnuplot> replot '-'
> input data ('e' ends) > 9 10
> input data ('e' ends) > 11 12
> input data ('e' ends) > 13 14
> input data ('e' ends) > e
> input data ('e' ends) > e
>
> gnuplot> plot '-', '-'
> ^
> no data point found in specified file
>
> Notice that the first e did not terminate the command. What am I
> doing wrong?
gnuplot does not store plotted data internally. Replot rereads the
previous data.
plot file1
replot file2
is the same as
plot file1
plot file1, file2
So as gnuplot already tells you, you do: plot '-', '-'
9 10 ... refers to the first '-'
and you don't supply any data for the second '-'
Tim


|