2014-10-30 3 views
2

팬 및 확대/축소 도구를 사용하려고하면 플롯이 마우스 왼쪽 버튼으로 회전하고 마우스 오른쪽 버튼을 클릭하면 줌이 확대됩니다. 직사각형을 선택하여 플롯을 확대하면 작동하지 않습니다. 누군가이 문제를 어떻게 해결할 수 있는지 실마리가 있습니까?Matplotlib 3D 팬 및 줌이 작동하지 않습니다.

답변

0

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 

소스 코드를 사용하여 이러한를 작성하는 시점에서 https://github.com/matplotlib/matplotlib/blob/master/lib/mpl_toolkits/mplot3d/axes3d.py 것은 1031

까지 라인 1017에 있습니다
관련 문제