MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / _plot_line_on_fig

Function _plot_line_on_fig

detrsmpl/core/renderer/matplotlib3d_renderer.py:385–396  ·  view source on GitHub ↗

Draw line on fig with matplotlib.

(ax,
                      point1_location,
                      point2_location,
                      color,
                      linewidth=1)

Source from the content-addressed store, hash-verified

383
384
385def _plot_line_on_fig(ax,
386 point1_location,
387 point2_location,
388 color,
389 linewidth=1):
390 """Draw line on fig with matplotlib."""
391 ax.plot([point1_location[0], point2_location[0]],
392 [point1_location[1], point2_location[1]],
393 [point1_location[2], point2_location[2]],
394 color=color,
395 linewidth=linewidth)
396 return ax
397
398
399def _get_cv2mat_from_buf(fig, dpi=180):

Callers 2

_draw_sceneMethod · 0.85
_export_framesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected