Hi BrightDog7 did you see this explanation?
None
All plots. This is how they’re logged:
from clearml import Task, Logger
import matplotlib.pyplot as plt
import numpy as np
# Initialize a ClearML task
task = Task.init(project_name="Demo Project", task_name="Plotting Example")
# Generate some dummy data
x = np.linspace(0, 10, 100)
y = np.sin(x)
# Create a plot
fig, ax = plt.subplots()
ax.plot(x, y, label='Sine Wave')
ax.set_title('Sine Wave Plot')
ax.set_xlabel('x')
ax.set_ylabel('sin(x)')
ax.legend()
# Use the logger to report the Matplotlib figure
logger = task.get_logger()
logger.report_matplotlib_figure(
title='Sine Wave Plot',
series='Sine Wave',
figure=fig,
iteration=0,
report_interactive=False
)
# Optionally, show the plot
plt.show()
Hi BrightDog7 , do you have a code snippet that reproduces this? Is it for all plots or only specifics?