Yap, this way works. I changed mine and it works now. Thank you
I think the main diference was that I was using the plt directly but you used the ax from the subplots function. Maybe clearml doesn't pick up the plt function directly.
This one seem to work
` from clearml import Task
task = Task.init(...)
import matplotlib.pyplot as plt
import numpy as np
plt.style.use('_mpl-gallery')
make data:
np.random.seed(10)
D = np.random.normal((3, 5, 4), (0.75, 1.00, 0.75), (200, 3))
plot:
fig, ax = plt.subplots()
vp = ax.violinplot(D, [2, 4, 6], widths=2,
showmeans=False, showmedians=False, showextrema=False)
styling:
for body in vp['bodies']:
body.set_alpha(0.9)
ax.set(xlim=(0, 8), xticks=np.arange(1, 8),
ylim=(0, 8), yticks=np.arange(1, 8))
plt.show() `
Thanks FrothyShark37
I just verified, this would work as well, I suspect what was missing is the plt.show
call, this is the actual call that triggers clearml
I can share the specific bit that's not being logged. I can't share much more. It's a violin plot.plt_data = [df[df.col1 == x][col2] for x in df.col1.unique()] plt.violinplot(plt_data) plt.show()
Can you post here the actual line? seems like we can fix it to also support this scenario (if we could test it)
FrothyShark37 what was different in your script ?
Hi FrothyShark37
Can you verify with the latest version?
pip install -U clearml
FrothyShark37 any chance you can share snippet to reproduce?
it was in my first code bit. that's how I created the plotplt.violinplot(plt_data)