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
Automatic Logging For Generated Matplotlib Works Nicely, But For Some Reason It Names The Graphs As "00 Untitled" And Uses Series "Plot Image" In Clearml Ui -- Any Way To Circumvent This, Other Than Explicit Reporting?

Automatic logging for generated matplotlib works nicely, but for some reason it names the graphs as "00 untitled" and uses series "plot image" in ClearML UI -- any way to circumvent this, other than explicit reporting?

  
  
Posted one year ago
Votes Newest

Answers 14


ClearML 1.1.4, Matplotlib 3.3.0 (it's not the latest as we have some backward compatibility issues)

  
  
Posted one year ago

There's a specific fig[1].set_title(title) call.

  
  
Posted one year ago

How are you reporting / generating them now?

  
  
Posted one year ago

Also, I think you can specify title with
plt.title('Image Title')

  
  
Posted one year ago

The title is specified in the plot (see the example, even if small).
I'm just creating a figure normally with matplotlib and save it to disk.

  
  
Posted one year ago

Did you try what I added? Also the screenshot is too small, nothing is readable

  
  
Posted one year ago

Yes -- that's what I meant by The title is specified in the plot . I make the plots manually - title, axes labels, ticks, etc. In that sense, the figure is entirely configured. ClearML just saves it as "untitled 00/plot image"

  
  
Posted one year ago

Sure! It's a bit intricate as it accommodates many of our different plotting functionalities, but this consists of the important bits (I realize we have some bad naming here, but fig[0] is actually a Figure object, and fig[1] is an Axes object):

` plt.switch_backend('agg')
sns.set_theme(...)
fig = plt.subplots(...)

sns.histplot(data, ax=fig[1], ...)
fig[1].set_xlim(...)
fig[1].set_ylim(...)
fig[1].legend(loc='best')
fig[1].set_xlabel(xlabel)
fig[1].set_ylabel(ylabel)
fig[1].set_title(title)
sns.despine(fig=fig[0], ...)

plt.savefig(...) `

  
  
Posted one year ago

Without knowing anything, I'm assuming maybe ClearML patches plt.title and not Axes.set_title ?

  
  
Posted one year ago

Any thoughts CostlyOstrich36 ?

  
  
Posted one year ago

What versions of ClearML/matplotlib are you using?

  
  
Posted one year ago

The screenshot is small since the data is private anyway, but it's enough to see:
"Metric: untitled 00" "plot image" as the image title The attached histogram has a title ("histogram of ...")

  
  
Posted one year ago

Can you add a snippet of how you're presenting/generating the matplotlibs?

  
  
Posted one year ago

Let me take a look 🙂

  
  
Posted one year ago
99 Views
14 Answers
one year ago
4 months ago
Tags