Update Matplotlib integration images

This commit is contained in:
revital 2025-03-19 10:55:17 +02:00
parent aff6306e87
commit b3298d82ab
8 changed files with 12 additions and 6 deletions

View File

@ -10,13 +10,16 @@ example demonstrates using ClearML to log plots and images generated by Matplotl
The Matplotlib and Seaborn plots reported using [`Logger.report_matplotlib_figure()`](../../references/sdk/logger.md#report_matplotlib_figure)
appear in the task's **PLOTS** tab.
![Task Matplotlib plots](../../img/manual_matplotlib_reporting_01.png)
![Task Matplotlib plots](../../img/manual_matplotlib_reporting_01.png#light-mode-only)
![Task Matplotlib plots](../../img/manual_matplotlib_reporting_01_dark.png#dark-mode-only)
![Task Seaborn plot](../../img/manual_matplotlib_reporting_02.png)
![Task Seaborn plot](../../img/manual_matplotlib_reporting_02.png#light-mode-only)
![Task Seaborn plot](../../img/manual_matplotlib_reporting_02_dark.png#dark-mode-only)
## Debug Samples
Matplotlib figures can be logged as images by using [`Logger.report_matplotlib_figure()`](../../references/sdk/logger.md#report_matplotlib_figure),
and passing `report_image=True`. The images are displayed in the task's **DEBUG SAMPLES**.
![Task debug sample](../../img/manual_matplotlib_reporting_03.png)
![Task debug sample](../../img/manual_matplotlib_reporting_03.png#light-mode-only)
![Task debug sample](../../img/manual_matplotlib_reporting_03_dark.png#dark-mode-only)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -28,7 +28,8 @@ This will create a ClearML Task that captures:
View captured Matplotlib plots and images in the [WebApp](../webapp/webapp_exp_track_visual.md),
in the task's **Plots** and **Debug Samples** tabs respectively.
![Task plots](../img/examples_matplotlib_example_01.png)
![Task plots](../img/examples_matplotlib_example_01.png#light-mode-only)
![Task plots](../img/examples_matplotlib_example_01_dark.png#dark-mode-only)
## Automatic Logging Control
By default, when ClearML is integrated into your script, it captures all of your matplotlib visualizations.
@ -67,12 +68,14 @@ plt.show()
The logged figure is displayed in the task's **Plots** tab.
![Task Matplotlib plots](../img/manual_matplotlib_reporting_01.png)
![Task Matplotlib plots](../img/manual_matplotlib_reporting_01.png#light-mode-only)
![Task Matplotlib plots](../img/manual_matplotlib_reporting_01_dark.png#dark-mode-only)
Matplotlib figures can be logged as images by passing `report_image=True` to `Logger.report_matplotlib_figure()`.
View the images in the task's **DEBUG SAMPLES** tab.
![Task debug sample](../img/manual_matplotlib_reporting_03.png)
![Task debug sample](../img/manual_matplotlib_reporting_03.png#light-mode-only)
![Task debug sample](../img/manual_matplotlib_reporting_03_dark.png#dark-mode-only)
See [Manual Matplotlib Reporting](../guides/reporting/manual_matplotlib_reporting.md) example.