Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 交互式轴重缩放matplotlib_Python_Matplotlib - Fatal编程技术网

Python 交互式轴重缩放matplotlib

Python 交互式轴重缩放matplotlib,python,matplotlib,Python,Matplotlib,我在工作时从Fedora上的终端运行Python,在家里从Debian(Plasma KDE)上的终端运行Python。在Fedora上,我可以在matplotlib打印数据后重新缩放打印轴,但在Debian上无法重新缩放。我尝试了几种不同的后端和设置“matplotlib.interactive(1)”,但显然这些都不起作用。有人知道我需要什么样的设置以交互方式重新缩放绘图吗 非常感谢,, Niall您是否尝试过将Jupyter笔记本与%matplotlib笔记本一起使用(交互式绘图的IPyt

我在工作时从Fedora上的终端运行Python,在家里从Debian(Plasma KDE)上的终端运行Python。在Fedora上,我可以在matplotlib打印数据后重新缩放打印轴,但在Debian上无法重新缩放。我尝试了几种不同的后端和设置“matplotlib.interactive(1)”,但显然这些都不起作用。有人知道我需要什么样的设置以交互方式重新缩放绘图吗

非常感谢,,
Niall

您是否尝试过将Jupyter笔记本与
%matplotlib笔记本一起使用(交互式绘图的IPython magic命令)

我不熟悉Debian,但显然可以使用Jupyter: