Draw line on fig with matplotlib.
(ax,
point1_location,
point2_location,
color,
linewidth=1)
| 383 | |
| 384 | |
| 385 | def _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 | |
| 399 | def _get_cv2mat_from_buf(fig, dpi=180): |
no outgoing calls
no test coverage detected