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 2 years ago
Votes Newest

Answers 10


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

  
  
Posted 2 years ago

Hi, any updates ? CostlyOstrich36

  
  
Posted 2 years ago

clearml 1.9.0
clearml-agent 1.5.1

  
  
Posted 2 years 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 2 years 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 2 years ago

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

  
  
Posted 2 years ago

plotly 5.11.0

  
  
Posted 2 years ago

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

  
  
Posted 2 years 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 2 years ago

make sure you use the same version as i am

  
  
Posted 2 years ago
1K Views
10 Answers
2 years ago
2 years ago
Tags