|
From: John H. <jdh...@ac...> - 2005-01-26 15:15:49
|
>>>>> "Hans" == Hans Fangohr <H.F...@so...> writes:
Hans> I didn't make myself very clear, or I have misunderstood the
Hans> meaning of "interactive". I presumed that 'interactive'
Hans> means: I issue the plot command and the figure pops up
Hans> immediatly, etc.
Hans> Not interactive (in my understanding) means that I issue all
Hans> the matplotlib commands I'd like to use and at the end I can
Hans> use show() to display the picture.
This partially but not completely correct, but it is admittedly
confusing. Make sure you have read
http://matplotlib.sourceforge.net/interactive.html and
http://matplotlib.sourceforge.net/faq.html#SHOW . As emphasized in
the FAQ
IMPORTANT: show should called at most once per script and it should
be the last line of your script. At that point, the GUI takes
control of the interpreter. If you want to force a figure draw, use
draw instead.
If you are issuing plot commands from idle, you need interactive :
True, you should not use show, and if you want finer control of when
the plot pops up and it drawn, use the commands ion, ioff and draw, as
explained on the interactive.html link.
Hope this helps -- if you still encounter problems please let us know
because it is always possible there is a bug ....
JDH
|