2021-05-13 23:48:51 +00:00
|
|
|
---
|
|
|
|
title: Manual Matplotlib Reporting
|
|
|
|
---
|
|
|
|
|
2025-02-13 11:21:35 +00:00
|
|
|
The [matplotlib_manual_reporting.py](https://github.com/clearml/clearml/blob/master/examples/reporting/matplotlib_manual_reporting.py)
|
2022-04-10 07:47:04 +00:00
|
|
|
example demonstrates using ClearML to log plots and images generated by Matplotlib and Seaborn.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2022-04-10 07:47:04 +00:00
|
|
|
## Plots
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2023-12-21 09:57:16 +00:00
|
|
|
The Matplotlib and Seaborn plots reported using [`Logger.report_matplotlib_figure()`](../../references/sdk/logger.md#report_matplotlib_figure)
|
2025-02-06 15:31:11 +00:00
|
|
|
appear in the task's **PLOTS** tab.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|

|
2022-04-10 07:47:04 +00:00
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|

|
2022-04-10 07:47:04 +00:00
|
|
|
|
|
|
|
## Debug Samples
|
|
|
|
|
2023-12-21 09:57:16 +00:00
|
|
|
Matplotlib figures can be logged as images by using [`Logger.report_matplotlib_figure()`](../../references/sdk/logger.md#report_matplotlib_figure),
|
2025-02-06 15:31:11 +00:00
|
|
|
and passing `report_image=True`. The images are displayed in the task's **DEBUG SAMPLES**.
|
2022-04-10 07:47:04 +00:00
|
|
|
|
2025-02-06 15:31:11 +00:00
|
|
|

|