8000 debug and tidy up graphics · rocsys/spatialmath-python@e60cf36 · GitHub
[go: up one dir, main page]

Skip to content

Commit e60cf36

Browse files
committed
debug and tidy up graphics
1 parent c1d7d6b commit e60cf36

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spatialmath/base/graphics.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,14 +1458,16 @@ def _axes_dimensions(ax: plt.Axes) -> int:
14581458

14591459
if hasattr(ax, "name"):
14601460
# 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
14621462
else:
14631463
# handle the case of Animate objects pretending to be Axes
14641464
classname = ax.__class__.__name__
14651465
if classname == "Animate":
1466-
return 3
1466+
ret = 3
14671467
elif classname == "Animate2":
1468-
return 2
1468+
ret = 2
1469+
print("_axes_dimensions ", ax, ret)
1470+
return ret
14691471

14701472
def axes_get_limits(ax: plt.Axes) -> NDArray:
14711473
return np.r_[ax.get_xlim(), ax.get_ylim()]
@@ -1563,7 +1565,7 @@ def axes_logic(
15631565
ax = plt.axes(projection="3d", proj_type=projection)
15641566

15651567
plt.sca(ax)
1566-
plt.axes(ax)
1568+
# plt.axes(ax)
15671569

15681570
return ax
15691571

0 commit comments

Comments
 (0)
0