MCPcopy
hub / github.com/AtsushiSakai/PythonRobotics / plot_arrow

Function plot_arrow

PathPlanning/BezierPath/bezier_path.py:114–122  ·  view source on GitHub ↗

Plot arrow.

(x, y, yaw, length=1.0, width=0.5, fc="r", ec="k")

Source from the content-addressed store, hash-verified

112
113
114def plot_arrow(x, y, yaw, length=1.0, width=0.5, fc="r", ec="k"): # pragma: no cover
115 """Plot arrow."""
116 if not isinstance(x, float):
117 for (ix, iy, iyaw) in zip(x, y, yaw):
118 plot_arrow(ix, iy, iyaw)
119 else:
120 plt.arrow(x, y, length * np.cos(yaw), length * np.sin(yaw),
121 fc=fc, ec=ec, head_width=width, head_length=width)
122 plt.plot(x, y)
123
124
125def main():

Callers 2

mainFunction · 0.70
main2Function · 0.70

Calls 1

plotMethod · 0.45

Tested by

no test coverage detected