File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1458,14 +1458,16 @@ def _axes_dimensions(ax: plt.Axes) -> int:
1458
1458
1459
1459
if hasattr (ax , "name" ):
1460
1460
# handle the case of some kind of matplotlib Axes
1461
- return 3 if ax .name == "3d" else 2
1461
+ ret = 3 if ax .name == "3d" else 2
1462
1462
else :
1463
1463
# handle the case of Animate objects pretending to be Axes
1464
1464
classname = ax .__class__ .__name__
1465
1465
if classname == "Animate" :
1466
- return 3
1466
+ ret = 3
1467
1467
elif classname == "Animate2" :
1468
- return 2
1468
+ ret = 2
1469
+ print ("_axes_dimensions " , ax , ret )
1470
+ return ret
1469
1471
1470
1472
def axes_get_limits (ax : plt .Axes ) -> NDArray :
1471
1473
return np .r_ [ax .get_xlim (), ax .get_ylim ()]
@@ -1563,7 +1565,7 @@ def axes_logic(
1563
1565
ax = plt .axes (projection = "3d" , proj_type = projection )
1564
1566
1565
1567
plt .sca (ax )
1566
- plt .axes (ax )
1568
+ # plt.axes(ax)
1567
1569
1568
1570
return ax
1569
1571
You can’t perform that action at this time.
0 commit comments