Skip to content
Snippets Groups Projects
Unverified Commit c73f4974 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony Committed by GitHub
Browse files

Merge pull request #27217 from mantidproject/26768_remove_fit_button_from_tiled_plots

Disable fit button for tiled plots
parents 691a4998 46173f28
No related branches found
No related tags found
No related merge requests found
...@@ -278,7 +278,8 @@ class FigureManagerWorkbench(FigureManagerBase, QObject): ...@@ -278,7 +278,8 @@ class FigureManagerWorkbench(FigureManagerBase, QObject):
# Hack to ensure the canvas is up to date # Hack to ensure the canvas is up to date
self.canvas.draw_idle() self.canvas.draw_idle()
if figure_type(self.canvas.figure) not in [FigureType.Line, FigureType.Errorbar]: if figure_type(self.canvas.figure) not in [FigureType.Line, FigureType.Errorbar] \
or self.toolbar is not None and len(self.canvas.figure.get_axes()) > 1:
self._set_fit_enabled(False) self._set_fit_enabled(False)
# For plot-to-script button to show, we must have a MantidAxes with lines in it # For plot-to-script button to show, we must have a MantidAxes with lines in it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment