Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable zoom in/out and zoom to percentage buttons in Plots pane in Spyder?

The zoom in, zoom out and zoom to percentage buttons are disabled in Plots pane in Spyder as shown here. Any idea how to enable them?

The should be enabled as seen here.

Specs

Spyder version: 4.0.0
OS: elementary OS
Python: 3.7.5 64-bit
Kernel: Linux 5.4.7-050407-generic
Laptop: Thinkpad E585

Failed attempts

Following changes in preferences didn't help:
1. Changing Backend from inline to automatic.
2. Changing Format from png to svg.
3. Changing Resolution from 72 to 150 dpi.

like image 222
Awais Mirza Avatar asked Jan 07 '20 14:01

Awais Mirza


People also ask

How do you zoom in on a Spyder graph?

Select from the menu Tools > Preferences , then IPython console in the list of categories on the left, then the tab Graphics at the top, and change the Graphics backend from Inline to e.g. Qt. For me though, the figures then always pop up in the background.

How do you zoom out on a Spyder?

You can use the zoom in/out buttons (- and +, top right), to change the font size to suit your preferences.

Where is the plots pane Options menu in Spyder?

The options menu in the top right of the Plots pane offers several ways to customize how your plots are displayed.


1 Answers

(Spyder maintainer here) To be able to use those buttons you need to deactivate the option called Fit plots to window, present in the Options menu of the Plots pane:

Plots options menu

like image 88
Carlos Cordoba Avatar answered Nov 15 '22 04:11

Carlos Cordoba