[SciPy-user] Newbie question

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Thu Jul 25 12:23:31 CDT 2002


>>>>> "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