# PyTorch with Matplotlib¶

The pytorch_matplotlib.py example demonstrates the integration of ClearML into code which uses PyTorch and Matplotlib. The example script calls Matplotlib methods to show images, each with a different title. ClearML automatically logs the images as debug samples. When the script runs, it creates an experiment named pytorch with matplotlib example which is associated with the examples project.

The images shown in the example script’s imshow function appear in RESULTS > DEBUG SAMPLES, by metric.

Select a debug sample by metric.

Open the debug sample in the image viewer.