Fix matplotlib _reporter refactoring

This commit is contained in:
allegroai 2020-09-05 16:25:28 +03:00
parent c234837ce2
commit 646163a2cb

View File

@ -384,7 +384,8 @@ class PatchedMatplotlib:
_pylab_helpers.Gcf.set_active(stored_figure)
# get the main task
reporter = PatchedMatplotlib._current_task.__reporter
# noinspection PyProtectedMember
reporter = PatchedMatplotlib._current_task._reporter
if reporter is not None:
if mpl_fig.texts:
plot_title = mpl_fig.texts[0].get_text()