[SciPy-user] gist.error: Gist GdLines plotter failed
Travis Oliphant
oliphant at ee.byu.edu
Thu Feb 28 09:28:43 EST 2002
> I have used xplt to plot some functions.
>
>
> Python 2.1.2 (#1, Feb 25 2002, 18:04:21)
> [GCC 2.95.3 20010315 (SuSE)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> from scipy.xplt import *
> >>> from scipy import *
> >>> x = arange(0,10,0.2)
> >>> print x
> [ 0. 0.2 0.4 0.6 0.8 1. 1.2 1.4 1.6 1.8 2. 2.2 2.4 2.6
> 2.8
> 3. 3.2 3.4 3.6 3.8 4. 4.2 4.4 4.6 4.8 5. 5.2 5.4
> 5.6
> 5.8 6. 6.2 6.4 6.6 6.8 7. 7.2 7.4 7.6 7.8 8. 8.2
> 8.4
> 8.6 8.8 9. 9.2 9.4 9.6 9.8]
> >>> plot (x,sin(x))
> >>> plot (x,sin(0.1*x))
> >>> y = arange(0,10,0.1)
> >>> plot (y,sin(0.1*y))
> >>> plot (y,sin(y))
> >>> y = arange(0,10,0.1)
> >>> plot (y,sin(y))
>
> If I close the window (containing the graph) and run the command
>
> >>> plot (y,sin(y))
>
> again, I get
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.1/site-packages/scipy/xplt/Mplot.py",
> line 470, in plot
>
> gist.plg(y,x,type=thetype,color=thecolor,marker=themarker,marks=tomark)
> gist.error: Gist GdLines plotter failed
Gist won't let you close the window and then plot again without explicitly
raising the window.
xplt.window(0)
followed by the plotting commands will work.
This is something that could be fixed in the wrapper. I'll look in to it.
-Travis
More information about the SciPy-User
mailing list