diff --git a/system/plots.py b/system/plots.py index 1ebebaa..33004c5 100644 --- a/system/plots.py +++ b/system/plots.py @@ -282,8 +282,9 @@ class MainView (gtk.Notebook): ## Hide all plots that will be removed from the screen. for x in range(self._views.xsize): for y in range(self._views.ysize): - if width < x or height < y: + if x >= width or y >= height: self._views[x, y].set_view(None) + self._view_frames.remove(self._views[x, y]) for x in range(self._views.xsize): for y in range(self._views.ysize):