So I'm used to doing development in the IPython shell where I'll initialize a plot, and then add stuff to it before plotting, like:

In [1]: fig = plt.figure()

In [2]: ax = fig.add_subplot(111)

In [3]: x = np.linspace(0,10,100); y = np.sin(x)

In [4]: ax.plot(x, y)
Out[4]: [<matplotlib.lines.Line2D at 0x11b6af6a0>]

In [5]: plt.show()

where the plot won't appear until the last line. However, after I updated my Anaconda install, the plot will appear immediately on initialization with fig = plt.figure() and I won't be able to write to it after that.

Any ideas what's going on?

My specs:

  • macOS 10.12.6
  • Python 3.7.3
  • conda 4.7.10
  • IPython 7.6.1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.