clearml-docs/docs/guides/reporting/manual_matplotlib_reporting.md

22 lines
935 B
Markdown
Raw Normal View History

2021-05-13 23:48:51 +00:00
---
title: Manual Matplotlib Reporting
---
The [matplotlib_manual_reporting.py](https://github.com/allegroai/clearml/blob/master/examples/reporting/matplotlib_manual_reporting.py)
example demonstrates using ClearML to log plots and images generated by Matplotlib and Seaborn.
2021-05-13 23:48:51 +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
![Task Matplotlib plots](../../img/manual_matplotlib_reporting_01.png)
2025-02-06 15:31:11 +00:00
![Task Seaborn plot](../../img/manual_matplotlib_reporting_02.png)
## 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**.
2025-02-06 15:31:11 +00:00
![Task debug sample](../../img/manual_matplotlib_reporting_03.png)