# plot_utils

Python API: `luxonis_ml.data.utils.plot_utils`

## 函数

### plot_class_distribution

```python
def plot_class_distribution(ax: plt.Axes, task_type: str, task_data: list[dict[str, Any]]):
```

绘制类别分布条形图。

参数

 * `ax` (`plt.Axes`): 绘图轴。
 * `task_type` (`str`): 任务类型。
 * `task_data` (`list[dict[str, Any]]`): 类别分布记录。

### plot_heatmap

```python
def plot_heatmap(ax: plt.Axes, fig: plt.Figure, task_type: str, heatmap_data: list[list[float]] | None):
```

绘制热力图。

参数

 * `ax` (`plt.Axes`): 绘图轴。
 * `fig` (`plt.Figure`): 包含轴的图。
 * `task_type` (`str`): 任务类型。
 * `heatmap_data` (`list[list[float]] | None`): 要绘制的热力图值。
