@@ -507,7 +507,7 @@ def plot_arrow(
507507 ax : Optional [plt .Axes ] = None ,
508508 ** kwargs ,
509509 ) -> List [plt .Artist ]:
510- """
510+ r """
511511 Plot 2D arrow
512512
513513 :param start: start point, arrow tail
@@ -535,28 +535,30 @@ def plot_arrow(
535535
536536 >>> from spatialmath.base import plotvol2, plot_arrow
537537 >>> plotvol2(5)
538- >>> plot_arrow((-2, 2), (3, 4), color='r', width=0.1) # red arrow
538+ >>> plot_arrow((-2, 2), (2, 4), color='r', width=0.1) # red arrow
539+ >>> plot_arrow((4, 1), (2, 4), color='b', width=0.1) # blue arrow
539540
540541 .. plot::
541542
542543 from spatialmath.base import plotvol2, plot_arrow
543544 ax = plotvol2(5)
544545 plot_arrow((-2, 2), (3, 4), color='r', width=0.1) # red arrow
546+ plot_arrow((4, 1), (3, 4), color='b', width=0.1) # blue arrow
545547 ax.grid()
546548
547549 Example::
548550
549551 >>> from spatialmath.base import plotvol2, plot_arrow
550552 >>> plotvol2(5)
551- >>> plot_arrow((-2, -2), (2, 4), label="$\mathit{p}_3$", color='r', width=0.1)
553+ >>> plot_arrow((-2, -2), (2, 4), label=r "$\mathit{p}_3$", color='r', width=0.1)
552554
553555 .. plot::
554556
555557 from spatialmath.base import plotvol2, plot_arrow
556558 ax = plotvol2(5)
557559 ax.grid()
558560 plot_arrow(
559- (-2, 2), (3 , 4), label="$\mathit{p}_3$", color="r", width=0.1
561+ (-2, - 2), (2 , 4), label="$\mathit{p}_3$", color="r", width=0.1
560562 )
561563 plt.show(block=True)
562564
0 commit comments