Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have new information about this that a google search turned up</p> <p>This is from the writer of matplotlib. This came from <a href="http://old.nabble.com/calling-show%28%29-twice-in-a-row-td24276907.html" rel="nofollow">http://old.nabble.com/calling-show%28%29-twice-in-a-row-td24276907.html</a></p> <blockquote> <p>Hi Ondrej,</p> <p>I'm not sure where to find a good explanation of that, but let me give you some hints. It is intended to use show only once per program. Namely 'show' should be the last line in your script. If you want interactive plotting you may consider interactive mode (pyplot.ion-ioff) like in the example below.</p> <p>Furthermore for dynamic plotting all animation demos might be useful.</p> <p>Maybe you want to have also a look at <a href="http://matplotlib.sourceforge.net/users/shell.html" rel="nofollow">http://matplotlib.sourceforge.net/users/shell.html</a> .</p> <p>best regards Matthias</p> </blockquote> <p>So it seems it is an undocumented "feature" (bug?).</p> <p>Edit: here is his code block:</p> <pre><code>from pylab import * t = linspace(0.0, pi, 100) x = cos(t) y = sin(t) ion() # turn on interactive mode figure(0) subplot(111, autoscale_on=False, xlim=(-1.2, 1.2), ylim=(-.2, 1.2)) point = plot([x[0]], [y[0]], marker='o', mfc='r', ms=3) for j in arange(len(t)): # reset x/y-data of point setp(point[0], data=(x[j], y[j])) draw() # redraw current figure ioff() # turn off interactive mode show() </code></pre> <p>So maybe by using draw() you can get what you want. I haven't tested this code, I'd like to know its behavior.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload