简体   繁体   English

如何在 Spyder 的 Plots 窗格中启用放大/缩小和缩放到百分比按钮?

[英]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 . Spyder 的Plots窗格中的zoom inzoom outzoom to percentage按钮被禁用,如下所示 Any idea how to enable them?知道如何启用它们吗?

The should be enabled as seen here .应该像这里看到的那样启用。

Specs眼镜

Spyder version: 4.0.0 Spyder 版本:4.0.0
OS: elementary OS操作系统:基本操作系统
Python: 3.7.5 64-bit Python:3.7.5 64 位
Kernel: Linux 5.4.7-050407-generic内核:Linux 5.4.7-050407-generic
Laptop: Thinkpad E585笔记本电脑:Thinkpad E585

Failed attempts失败的尝试

Following changes in preferences didn't help:以下preferences变化没有帮助:
1. Changing Backend from inline to automatic . 1. 将Backend内联更改为自动
2. Changing Format from png to svg . 2. 将Formatpng更改为svg
3. Changing Resolution from 72 to 150 dpi. 3. 将Resolution72 dpi 更改为150 dpi。

( 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: 此处Spyder 维护者)为了能够使用这些按钮,您需要停用名为Fit plots to window的选项,该选项出现在 Plots 窗格的 Options 菜单中:

绘图选项菜单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM