Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Have A Visualization Issue When Using Plotly And Then “Report_Plotly” My Code Is

Hi, i have a visualization issue when using plotly and then “report_plotly”
My code is

fig=px.pie(X, names='a', facet_col='b') clearml_logger.report_plotly('pie chart', series=f"pie chart {i}", iteration=iteration, figure=fig)where X is a df with two columns b contains two str values and a contains multiple str values.

When comparing two clearml notebooks. the series headline does on top of the facet col

  
  
Posted one year ago
Votes Newest

Answers 10


and when you compare with oter (same tasks) the clearml title goes over the axis labels

  
  
Posted one year ago

plotly 5.11.0

  
  
Posted one year ago

make sure you use the same version as i am

  
  
Posted one year ago

second problem:
fig = px.imshow([[1,2], [3,4]], labels=dict(x="Predicted value", y="Real value"), x=['a', 'b'], y=['a','b'], title="Predicted and real values" ) fig.update_xaxes(side="top") clearml_logger.report_plotly('table test 2', series=f"table test 2 ", iteration=0, figure=fig) task.close()in this example you will see the plot title above the series title, without even comparing

  
  
Posted one year ago

CostlyOstrich36 this code will show you the first issue of headline does over the chart facet col header

  
  
Posted one year ago

clearml 1.9.0
clearml-agent 1.5.1

  
  
Posted one year ago

` import plotly.express as px
from clearml import Task
import pandas as pd
df = pd.DataFrame({'a': ['val1', 'val1', 'val1', 'val1', 'val1', 'val1', 'val1', 'val1', 'val1', 'val1', 'val2', 'val2', 'val2', 'val2', 'val2', 'val2'],
'b':['group_a', 'group_a', 'group_a', 'group_a', 'group_b', 'group_b', 'group_b', 'group_b', 'group_b', 'group_b', 'group_a', 'group_a', 'group_a', 'group_a', 'group_b', 'group_b']})
task = Task.init(**{"project_name":"test",
"task_name":"test1",})
clearml_logger = task.get_logger()
fig=px.pie(df, names='a', facet_col='b')
clearml_logger.report_plotly('long plot name that goes over facet - pie chart test',
series=f"pie chart test 1 ",
iteration=0,
figure=fig)
task.close()

task = Task.init(**{"project_name":"test",
"task_name":"test2",})
clearml_logger = task.get_logger()
fig=px.pie(df, names='a', facet_col='b')
clearml_logger.report_plotly('long plot name that goes over facet - pie chart test',
series=f"pie chart test 2 ",
iteration=0,
figure=fig)
task.close()

task = Task.init(**{"project_name":"test",
"task_name":"test3",})
clearml_logger = task.get_logger()
fig=px.pie(df, names='a', facet_col='b')
clearml_logger.report_plotly('long plot name that goes over facet - pie chart test',
series=f"pie chart test 3 ",
iteration=0,
figure=fig)
task.close() `

  
  
Posted one year ago

Hi, any updates ? CostlyOstrich36

  
  
Posted one year ago

Getting the following error when I try to run this code:

Traceback (most recent call last): File "plots-issue.py", line 9, in <module> fig=px.pie(df, names='a', facet_col='b') TypeError: pie() got an unexpected keyword argument 'facet_col'

  
  
Posted one year ago

Hi MoodySheep3 ,can you please add a standalone snippet that reproduces this? What version of clearml are you using?

  
  
Posted one year ago
984 Views
10 Answers
one year ago
one year ago
Tags