diff --git a/trains/binding/matplotlib_bind.py b/trains/binding/matplotlib_bind.py index d3d78ed6..3b2a9896 100644 --- a/trains/binding/matplotlib_bind.py +++ b/trains/binding/matplotlib_bind.py @@ -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()