[SciPy-user] Re: Pythonw crashes if I try to plot Complex data points

John Byrnes jb1 at alfred.edu
Wed Jan 14 03:01:21 CST 2004


>>>> from scipy import *
>>>> a = arange(1,10,0.2)
>>>> b = a + 2.j
>>>> b
All works OK.

>>>> gplt.plot(b)
Crashes for me too... However, you forgot to tell scipy to import gplt. 
  In any case it doesn't help anyway.

Try this

from scipy import *
from scipy import plt
a = arange(1,10,0.2)
b = a + 2.j
plt.plot(b)

This snippet works fine for me.

John



More information about the SciPy-user mailing list