MCPcopy Create free account
hub / github.com/Rex-sys-hk/PlanScope / plot_lane_area

Function plot_lane_area

src/utils/vis.py:312–316  ·  view source on GitHub ↗
(ax, left_bound, right_bound, fc="silver", alpha=1.0, ec=None)

Source from the content-addressed store, hash-verified

310
311
312def plot_lane_area(ax, left_bound, right_bound, fc="silver", alpha=1.0, ec=None):
313 polygon = np.concatenate([left_bound, right_bound[::-1]])
314 ax.add_patch(
315 Polygon(polygon, closed=True, fc=fc, alpha=alpha, ec=None, linewidth=2)
316 )
317
318
319def plot_cov_ellipse(logstd, rho, pos, nstd=2, ax=None, **kwargs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected