|
From: Michael H. <mh...@al...> - 2010-04-21 12:43:52
|
Felix Uni wrote:
> i have following problem:
> i want to plot a number of lines. The number of lines can be set by an
> user option, so i don't know it in advance. I thought of using a list of
> Data PlotItems. Establishing the PlotItem list works, however sending it
> to g.plot fails. Any idea how to do this/ work around it.
> [...]
> 19 # --- This is what i want to work :-) ---
> 20 g.plot(ga)
Use
g.plot(*ga)
to treat the entries in the "ga" list as individual arguments to the
plot() method.
Michael
|