Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyplot/Matplotlib incorrect line labels and colors #791

Closed
vultix opened this issue Oct 2, 2022 · 2 comments
Closed

Pyplot/Matplotlib incorrect line labels and colors #791

vultix opened this issue Oct 2, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@vultix
Copy link

vultix commented Oct 2, 2022

Describe the bug

Lines are incorrectly labeled and colored when created via matplotlib/plotly and reported to clearml.

To reproduce

from matplotlib import pyplot as plt
from clearml import Task

task = Task.init(project_name='examples', task_name='missing-pyplot-colors')

fig = plt.figure()
plt.plot([1, 2, 3, 4], color="red", label="red")
plt.plot([4, 3, 2, 1], color="blue", label="blue")
plt.title("Example Plot")
plt.legend()
fig.show()

Expected behaviour

The output chart should have a correct legend and be correctly colored:
image

Instead, this is what shows up in clearml:
image

Note that both lines are labeled 'blue', and neither are colored.

Environment

  • Server type app.clear.ml
  • ClearML SDK Version 1.7.1
  • Python Version 3.9.12
  • OS Macos
@vultix vultix added the bug Something isn't working label Oct 2, 2022
@erezalg
Copy link
Contributor

erezalg commented Oct 11, 2022

Hi @vultix,

Thanks for reporting this!
We've released an RC version that should solve this issue, You can install it by running:
pip install clearml==1.7.2rc0

@jkhenning
Copy link
Member

Closing this issue. Please reopen if it's still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants