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
Hey, Im Doing This (Id Like To Set Custom X_Ticks For The Plot):

Hey, Im doing this (Id like to set custom x_ticks for the plot):
task.logger.report_line_plot('this_is_the_title', [{'name': 'series_name', 'data': np.asarray([[1,3],[2,4],[3,5]])}], xaxis='x_label', yaxis='y_label',extra_layout=dict(tickmode = 'array', tickvals = [1, 3, 4], ticktext = ['One', 'Three', 'Four']))but the result is this:

Posted 2 years ago
Votes Newest

Answers 5

Hey! So several things here:

As per the plotly docs, you have to give which axis you want to format, in your example plotly can't know. If you look closely to their example, you'll see it's a nested dict, with the key being 'xaxis' Your numpy data has x values of 1 2 3, but your extra layout has values 1 3 4 which don't match. Plotly took the first element of each subarray to be the x value.
If we fix these 2 things, your example becomes:
task.logger.report_line_plot('this_is_the_title', [{'name': 'series_name', 'data': np.asarray([[1,3],[2,4],[3,5]])}], xaxis='x_label', yaxis='y_label', extra_layout=dict(xaxis=dict(tickmode='array', tickvals=[1, 2, 3], ticktext=['One', 'Two', 'Three'])) )
Which works as advertised 😄

Posted 2 years ago

You mean the you want a custom x axis name?

Posted 2 years ago

What do you mean by x_ticks?

Posted 2 years ago

oh thank you 🙂

Posted 2 years ago
5 Answers
2 years ago
one year ago