On Wed, Aug 7, 2013 at 11:45 AM, <keith.bri...@bt.com> wrote:

> The last line of text below seems to say that setting block to either True
> or False causes an override of the blocking behavior.  I don't think this
> is as intended.   Which way round is it (in fact I find it has no effect)?
>
> The problem I have is that using pyplot.show at the top level of a python
> script works correctly, but as soon as I out the same code inside a
> function, I see no plot.
>
> How do I fix this?
>
> Keith
>
> http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.show
>
> matplotlib.pyplot.show(*args, **kw)
>
> In non-interactive mode, display all figures and block until the figures
> have been closed; in interactive mode it has no effect unless figures were
> created prior to a change from non-interactive to interactive mode (not
> recommended). In that case it displays the figures but does not block.
>
> A single experimental keyword argument, block, may be set to True or False
> to override the blocking behavior described above.
>

Which version of matplotlib are you using, and which backend?

import matplotlib
print matplotlib.__version__, matplotlib.get_backend()

Cheers!
Ben Root
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to