- for OpenGL graphic mode added a fit_view() execution on canvas initialization

This commit is contained in:
Marius Stanciu
2019-12-10 17:24:28 +02:00
parent 621ac9a598
commit 660f69cfc5
2 changed files with 3 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas):
self.big_cursor = None
# Keep VisPy canvas happy by letting it be "frozen" again.
self.freeze()
self.fit_view()
self.graph_event_connect('mouse_wheel', self.on_mouse_scroll)
def draw_workspace(self, workspace_size):