Yes there are two event loops here.

You can use mplt.pause(1) after a plot command to allow the plot event loop 
so the graph is plotted and control it for 1 second(you might want more 
like 10).

The inline plot in the console work as expected.



On Tuesday, November 6, 2018 at 9:40:23 AM UTC-7, AD wrote:
>
> I'm a python noob. Apologies up front.
>
> I have Spyde (3.3.1)  via Anaconda installed just the other day.  I am 
> running Python 3.7.0 64bits under Win10.
>
> I am debugging a script and stopped at a breakpoint. 
>
> Previous in the file is this import:
>
> import matplotlib.pyplot as mplt
>
> I have preferences/iPython Console/Graphics/Graphics backend set to 
> Automatic (something I read said to do that to have separate interactive 
> figures)
>
> While at the breakpoint, I entered, into the console:
>
> figh=mplt.figure(2)
>
> Though this does cause a figure 2 to appear (albeit buried behind Spyder), 
> the figure's title,name line says:
>
> *Figure 2 (Not Responding)*
>
> I does  respond to plot commands and  mplot.show() doesn't seen to help
>
> Pressing the close X on the figure brings up "Python is not responding" 
> with options on restoring/closing etc.
>
> I get the feeling I have dueling event loops.
>
> Help me Obi-Wan 
>
> Thanks
>
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to