<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google-ai-edge/mediapipe/blob/master/mediapipe/tasks/python/vision/drawing_utils.py#L268-L338) |

Plot the landmarks and the connections in matplotlib 3d.

```python
mp.tasks.vision.drawing_utils.plot_landmarks(
    landmark_list: list[`mp.tasks.components.containers.NormalizedLandmark`],
    connections: Optional[list[tuple[int, int]]] = None,
    landmark_drawing_spec: `mp.tasks.vision.drawing_utils.DrawingSpec` = `DrawingSpec(color=RED_COLOR, thickness=5)`,
    connection_drawing_spec: `mp.tasks.vision.drawing_utils.DrawingSpec` = `DrawingSpec(color=BLACK_COLOR, thickness=5)`,
    elevation: int = 10,
    azimuth: int = 10
)
```

<br />

<br />

<br />

| ## Args ||
|---|---|
| `landmark_list` | A list of normalized landmarks to be plotted. |
| `connections` | A list of landmark index tuples that specifies how landmarks to be connected. |
| `landmark_drawing_spec` | A DrawingSpec object that specifies the landmarks' drawing settings such as color and line thickness. |
| `connection_drawing_spec` | A DrawingSpec object that specifies the connections' drawing settings such as color and line thickness. |
| `elevation` | The elevation from which to view the plot. |
| `azimuth` | the azimuth angle to rotate the plot. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If any connection contains an invalid landmark index. |

<br />