Skip to content

Commit fc88453

Browse files
committed
expose expand_dims, rename plot_poly to plot_polygon
1 parent 596ef3d commit fc88453

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spatialmath/base/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
"plot_point",
324324
"plot_text",
325325
"plot_box",
326-
"plot_poly",
326+
"plot_polygon",
327327
"circle",
328328
"ellipse",
329329
"sphere",
@@ -339,6 +339,7 @@
339339
"plot_cone",
340340
"plot_cuboid",
341341
"axes_logic",
342+
"expand_dims",
342343
"isnotebook",
343344

344345
# spatial.base.numeric

spatialmath/base/graphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def plot_arrow(start, end, ax=None, **kwargs):
405405

406406
ax.arrow(start[0], start[1], end[0] - start[0], end[1] - start[1], length_includes_head=True, **kwargs)
407407

408-
def plot_poly(vertices, *fmt, close=False, **kwargs):
408+
def plot_polygon(vertices, *fmt, close=False, **kwargs):
409409

410410
if close:
411411
vertices = np.hstack((vertices, vertices[:, [0]]))

0 commit comments

Comments
 (0)