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.

2
  • What does it mean: opens in a terminal? Commented Nov 25, 2015 at 11:06
  • 1
    @AndreySobolev: the Spyder terminal Commented Nov 25, 2015 at 12:08

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.