From: Michael H. <mh...@al...> - 2005-07-01 19:30:26
|
Steven Waldauer wrote: > a_mag = Gnuplot.Data(w, cols=(1,6), inline=1) > mags.append(a_mag) > > s_mag = Gnuplot.Data(w, cols=(1,10), inline=1) > mags.append(s_mag) > > when I use the command: > g.plot(a_mag, s_mag) > > everything works fine. I would like however to add or remove certain > plots from within the script, but alas the command: > > g.plot(mags) > > or > g.plot(tuple(mags)) > > does not work. I get the following error messages: What you want is g.plot(*mags) or, if you are using an older version of Python, apply(g.plot, tuple(mags)) Michael |