[SciPy-dev] Crash in plt.image()
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Tue Apr 9 11:51:44 CDT 2002
hi,
>>>>> "Jose" == josegomez <iso-8859-15> writes:
[snip]
Jose> I am interested in plotting images, using
Jose> plt.image(). This causes python to crash with a
Jose> seg-fault. Take the Lena example: $ python Python 2.1.2 (#1,
Jose> Mar 16 2002, 00:56:55) [GCC 2.95.4 20011002 (Debian
Jose> prerelease)] on linux2 Type "copyright", "credits" or
Jose> "license" for more information.
[snip]
Jose> Other methods (such as plt.plot()) work fine, with one
Jose> little quirk, which could be due to my X Server being
Jose> misconfigured, as this problem also shows up with other
Jose> programs (namely, Scilab): if I get plt to plot something
[snip]
Well, I think the problem arises because you did not start gui_thread
before you started to use the plt module. What you should do is
something like this:
$ python
>>> import gui_thread
>>> <Importing wxPython... done.>
>>> from scipy import plt
>>> plt.plot([1,4,9,16])
...
Hope this helps,
prabhu
More information about the Scipy-dev
mailing list