jlconlin
jlconlin

Reputation: 15054

matplotlib interactive… isn't

I'm running Python 3.5.1 with matplotlib version 1.5.1 and iPython 5.0.0. I can't seem to get matplotlib's interactive feature working. I can run a command to create a plot:

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
ax.plot([1,2,3])

This doesn't show a figure until I manually execute plt.show(), at which point iPython hangs until I close the figure window. I have interactive set to True in my matplotlibrc file.

It's been a year or so since I used matplotlib. The last time I used it, I got interactive without having to execute plt.show(). Has something changed or am I doing something wrong?

Upvotes: 1

Views: 938

Answers (1)

wim
wim

Reputation: 362478

You were probably using interactive mode previously.

Start ipython with:

ipython --pylab

Then your plots will show up instantly.

Upvotes: 2

Related Questions