|
24 | 24 | QFrame,
|
25 | 25 | QSpacerItem,
|
26 | 26 | )
|
27 |
| -from qtpy.QtCore import QItemSelectionModel, Qt, Signal |
| 27 | +from qtpy.QtCore import QItemSelectionModel, Qt, Signal, QSize |
28 | 28 | from mantidqt.widgets.observers.observing_view import ObservingView
|
29 | 29 | from mantidqt.MPLwidgets import FigureCanvas
|
30 | 30 | from mantid.api import Workspace
|
@@ -123,6 +123,7 @@ def __init__(self, presenter, parent=None, window_flags=Qt.Window, name="", isMD
|
123 | 123 | self.fig = Figure()
|
124 | 124 | self.canvas = FigureCanvas(self.fig)
|
125 | 125 | self.canvas.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
|
| 126 | + self.canvas.setMinimumSize(QSize(0, 0)) |
126 | 127 | self.canvas.mpl_connect("button_press_event", self.presenter.plot_clicked)
|
127 | 128 | self.ax = self.fig.add_subplot(111, projection="mantid")
|
128 | 129 | layout_right.addWidget(self.canvas)
|
@@ -169,7 +170,7 @@ def set_model(self, model):
|
169 | 170 | self.table.selectionModel().selectionChanged.connect(self.presenter.update)
|
170 | 171 |
|
171 | 172 | def show_plot_and_stats(self, show_plot_and_stats):
|
172 |
| - """sets wether the plot and stats section should be visible""" |
| 173 | + """sets whether the plot and stats section should be visible""" |
173 | 174 | if self.frame_right.isVisible() != show_plot_and_stats:
|
174 | 175 | # the desired state is nor the current state
|
175 | 176 | self.setUpdatesEnabled(False)
|
|
0 commit comments