mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix matplotlib titles
This commit is contained in:
parent
d06468b09d
commit
ac37cfc55d
@ -168,7 +168,11 @@ class PatchedMatplotlib:
|
|||||||
plotly_fig.layout.height = None
|
plotly_fig.layout.height = None
|
||||||
plotly_fig.layout.width = None
|
plotly_fig.layout.width = None
|
||||||
# send the plot event
|
# send the plot event
|
||||||
reporter.report_plot(title=title, series='plot', plot=plotly_fig.to_plotly_json(),
|
plotly_dict = plotly_fig.to_plotly_json()
|
||||||
|
if not plotly_dict.get('layout'):
|
||||||
|
plotly_dict['layout'] = {}
|
||||||
|
plotly_dict['layout']['title'] = title
|
||||||
|
reporter.report_plot(title=title, series='plot', plot=plotly_dict,
|
||||||
iter=PatchedMatplotlib._global_plot_counter if plot_title else 0)
|
iter=PatchedMatplotlib._global_plot_counter if plot_title else 0)
|
||||||
else:
|
else:
|
||||||
# send the plot as image
|
# send the plot as image
|
||||||
|
Loading…
Reference in New Issue
Block a user