Matplotlib三维平移和缩放不起作用

Matplotlib三维平移和缩放不起作用,matplotlib,mplot3d,Matplotlib,Mplot3d,当我尝试使用“平移和缩放”工具时,左键单击时绘图会旋转,右键单击时绘图会从中心缩放。通过选择矩形来缩放绘图不起作用。 有人知道如何解决这个问题吗?查看github上的源代码,您正在寻找的功能似乎不受支持。因此,您无法使用mplot3d.Axes3D def can_zoom(self) : """ Return *True* if this axes supports the zoom box button functionality. 3D axes objects do not use th

当我尝试使用“平移和缩放”工具时,左键单击时绘图会旋转,右键单击时绘图会从中心缩放。通过选择矩形来缩放绘图不起作用。
有人知道如何解决这个问题吗?

查看github上的源代码,您正在寻找的功能似乎不受支持。因此,您无法使用
mplot3d.Axes3D

def can_zoom(self) :
"""
Return *True* if this axes supports the zoom box button functionality.
3D axes objects do not use the zoom box button.
"""
return False

def can_pan(self) :
"""
Return *True* if this axes supports the pan/zoom button functionality.
3D axes objects do not use the pan/zoom button.
"""
return False
源代码: 在撰写本文时,这些都在第1017至1031行