James S. Martin writes:
> I am trying to figure out how to plot multiple sets of file data on
> the same graph without using a replot.
[...]
> p1=Gnuplot.File("file1",title="line1",using=9)
> p2=Gnuplot.File("file1",title="line2",using=10)
>
> lines.append(p1)
> lines.append(p2)
>
>
> g.plot(lines)
Yes. Since Gnuplot.plot() is defined to take a variable number of
parameters, you need to arrange that each of your PlotItems is a
separate parameter to the plot() method. Do either
g.plot(p1, p2)
or
lines = [p1,p2]
apply(g.plot, lines)
or (if you are using Python 2.0 or later)
lines = [p1,p2]
g.plot(*lines)
Michael
--
Michael Haggerty
hag...@jp...
|