- default values for Jump To function is jumping to origin (0, 0)

This commit is contained in:
Marius Stanciu
2019-04-07 03:43:58 +03:00
parent 5ef11a56cc
commit 57176b7e28
4 changed files with 22 additions and 12 deletions

View File

@@ -4407,7 +4407,7 @@ class App(QtCore.QObject):
self.plotcanvas.vis_connect('mouse_press', self.on_set_zero_click)
def on_jump_to(self, custom_location=None):
def on_jump_to(self, custom_location=None, fit_center=True):
"""
Jump to a location by setting the mouse cursor location
:return:
@@ -4433,7 +4433,8 @@ class App(QtCore.QObject):
else:
location = custom_location
self.plotcanvas.fit_center(loc=location)
if fit_center:
self.plotcanvas.fit_center(loc=location)
cursor = QtGui.QCursor()