python - Showing updated plot at every step with matplotlib's plot_directive -


i using matplotlib's plot_directive sphinx extension, , have like:

.. plot::    :context:    :include-source:      import matplotlib.pyplot plt     fig = plt.figure()     ax = fig.add_subplot(1,1,1)     [stuff here]  text here  .. plot::    :context:    :include-source:      ax.set_xlim(0., 100.)     ax.set_ylim(0., 100.) 

the issue plot doesn't appear second time around. way can plot appear instantiate new plt.figure(). there way force output plot appear after second ..plot directive in above example, without re-creating new figure scratch?


Comments

Popular posts from this blog

visual studio - vb.net filter binding source by time -

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -