diff --git a/scripts/Muon/GUI/Common/plotting_widget/dockable_plot_toolbar.py b/scripts/Muon/GUI/Common/plotting_widget/dockable_plot_toolbar.py index 2169df3ddc353dde8d62c749b47615005a511db9..410227be5657c1fd2bcaf434eb859723922529f3 100644 --- a/scripts/Muon/GUI/Common/plotting_widget/dockable_plot_toolbar.py +++ b/scripts/Muon/GUI/Common/plotting_widget/dockable_plot_toolbar.py @@ -37,4 +37,5 @@ class DockablePlotToolbar(NavigationToolbar): for ax in self.canvas.figure.get_axes(): if ax.get_legend() is not None: ax.get_legend().set_visible(not ax.get_legend().get_visible()) + self.canvas.figure.tight_layout() self.canvas.draw()