8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 721ed79 commit 8b7324eCopy full SHA for 8b7324e
spatialmath/base/graphics.py
@@ -1570,7 +1570,7 @@ def axes_logic(
1570
return ax
1571
1572
def plotvol2(
1573
- dim: ArrayLike,
+ dim: ArrayLike = None,
1574
ax: Optional[plt.Axes] = None,
1575
equal: Optional[bool] = True,
1576
grid: Optional[bool] = False,
@@ -1601,10 +1601,15 @@ def plotvol2(
1601
"""
1602
ax = axes_logic(ax, 2, new=new)
1603
1604
- dims = expand_dims(dim, 2)
+ if dim is None:
1605
+ ax.autoscale(True)
1606
+ else:
1607
+ dims = expand_dims(dim, 2)
1608
+ ax.axis(dims)
1609
+
1610
# if ax is None:
1611
# ax = plt.subplot()
- ax.axis(dims)
1612
1613
if labels:
1614
ax.set_xlabel("X")
1615
ax.set_ylabel("Y")
0 commit comments