[SciPy-user] Newbie question

Douglas Eck doug at idsia.ch
Thu Jul 25 12:32:47 CDT 2002

That did it.  I had it backwards. I knew that *when* gui_thread
loaded was important... but I thought it was to be loaded last not
first.  Thanks for your note. It saves me a lot of restarts.


Prabhu Ramachandran wrote:
>>>>>>"DE" == Douglas Eck <doug at idsia.ch> writes:
>     DE> The problem is, only sometimes does the zooming work. I'd say
>     DE> about 33% of the time. Other times, no error is seen, the plot
>     DE> displays, but the zoom never comes up. I have to restart the
>     DE> python interpreter and run my program again.
>     DE> I think it is a threading issue but I'm not really sure how to
>     DE> track it down nor how to fix it.
> Are you sure you are importing gui_thread before you start using plt?
> IIRC you need to do something like:
> import gui_thread
> from scipy import plt
> plt.plot([1,2,3])
> etc.
> The first line is extremely important and if not done can cause random
> behaviour.
> cheers,
> prabhu

More information about the SciPy-user mailing list