2

I'm plotting a 3D plot in mathplotlib:

fig = plt.figure()
ax = fig.add_subplot(111, '3d')
ax.scatter(x,y,z)
plt.show()

The figure however open in the terminal so I cannot inspect it. How can I open it in a new window for inspection?

Thanks.

ali_m
  • 71,714
  • 23
  • 223
  • 298
Roy
  • 837
  • 1
  • 9
  • 22

1 Answers1

3

The default location for plots is in the IPython console. I guess that's what you mean by the terminal?

You can specify where they show up in Preferences > IPython console > Graphics > Backend. Change to Automatic.

Spyder preferences pane

As this question suggests, I had to restart Spyder to get it to pay attention to the change.

Community
  • 1
  • 1
Matt Hall
  • 7,614
  • 1
  • 23
  • 36