def fitToView(self, view, recompute_bounding_rect=False):
        if recompute_bounding_rect:
            self.updateSceneBoundingRect()
        view.centerOn(self.sceneBoundingRect.center())
        view.fitInView(self.sceneBoundingRect, QtCore.Qt.KeepAspectRatio)
fitToView(view: QGraphicsView,
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/graphics_view.py/QInteractiveGraphicsScene.fitToView