mrdja.matplot3d.draw_points
- mrdja.matplot3d.draw_points(points: ndarray, color: str = 'red', style: str = 'o', alpha: float = 0.5, ax=None)[source]
Draws points in 3D space.
- Parameters:
points (numpy.ndarray) – A Nx3 numpy array containing the points to draw.
color (str) – The color of the points to draw.
style (str) – The style of the points to draw.
alpha (float) – The transparency of the points to draw.
ax (matplotlib.axes._subplots.Axes3DSubplot) – The matplotlib ax object to draw on.
- Returns:
The ax object.
- Return type:
matplotlib.axes._subplots.Axes3DSubplot
- Example:
>>> import mrdja.matplot3d as plt3d >>> import numpy as np >>> points = np.array([[0, 0, 0], [1, 1, 1], [1, 0, 0]]) >>> plt3d.draw_points(points, color="blue", style="o")
