2021-05-13 23:48:51 +00:00
|
|
|
---
|
|
|
|
title: Matplotlib
|
|
|
|
---
|
|
|
|
|
2022-03-13 13:07:06 +00:00
|
|
|
The example below demonstrates integrating ClearML into code that uses `matplotlib` to plot scatter diagrams, and
|
|
|
|
show images. ClearML automatically logs the diagrams and images.
|
2021-11-04 09:21:05 +00:00
|
|
|
|
|
|
|
View the example in [script](https://github.com/allegroai/clearml/blob/master/examples/frameworks/matplotlib/matplotlib_example.py)
|
|
|
|
or in [Jupyter Notebook](https://github.com/allegroai/clearml/blob/master/examples/frameworks/matplotlib/jupyter_matplotlib_example.ipynb).
|
|
|
|
|
|
|
|
:::note
|
2021-11-07 07:51:34 +00:00
|
|
|
The example in [Jupyter Notebook](https://github.com/allegroai/clearml/blob/master/examples/frameworks/matplotlib/jupyter_matplotlib_example.ipynb)
|
2021-11-04 09:21:05 +00:00
|
|
|
includes a clickable icon to open the notebook in Google Colab.
|
|
|
|
:::
|
|
|
|
|
|
|
|
When the example runs, it creates an experiment named `Matplotlib example`,
|
|
|
|
which is associated with the `examples` project (in script) or the `Colab notebooks` project (in Jupyter Notebook).
|
|
|
|
|
|
|
|
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|
## Plots
|
|
|
|
|
2022-05-22 07:27:30 +00:00
|
|
|
The scatter plots appear in the **ClearML Web UI**, in **PLOTS**.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|

|
|
|
|
|
2021-09-09 10:17:46 +00:00
|
|
|
## Debug Samples
|
2021-05-13 23:48:51 +00:00
|
|
|
|
2022-05-22 07:27:30 +00:00
|
|
|
The images appear in **DEBUG SAMPLES**. Each debug sample image is associated with a metric.
|
2021-05-13 23:48:51 +00:00
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
View the debug sample in the image viewer.
|
|
|
|
|
|
|
|

|