python - Matplotlib figures not changing interactively - Canopy Ipython -
i trying use ipython in canopy matplotlib prepare graphs (backend set qt). wrote following code line line int terminal
import matplotlib.pyplot plt fig = plt.figure() s = fig.add_subplot(1,1,1)
after second line can see figure being made. after third line not see sub plot being created. if print fig, sub-plot can seen both inline , in figure window created. sub-plot magically appears if try zoom. similar thing happens every time plot on figure. old version displayed till either print figure or if try modify view using gui tools. annoying. great if tell me problem is.
edit: tried using fig.show() not work. when use plt.plot() directly, there seems no problem. problem comes when use fig or of subplots
type: fig.show()
when need update it.
Comments
Post a Comment