[bugfix] time axis for plots created with linspace instead of arange

[minor] enhanced error output
This commit is contained in:
2019-03-07 16:31:41 +01:00
parent 9583f9d351
commit 49bcdd2680
3 changed files with 13 additions and 8 deletions
+6 -2
View File
@@ -146,6 +146,7 @@ class Array_map(QtGui.QWidget):
message = 'Could not save picks for station {st}.\n{er}'.format(st=station, er=e)
self._warn(message)
print(message, e)
print(traceback.format_exc())
def connectSignals(self):
self.comboBox_phase.currentIndexChanged.connect(self._refresh_drawings)
@@ -486,8 +487,11 @@ class Array_map(QtGui.QWidget):
def remove_drawings(self):
self.remove_annotations()
if hasattr(self, 'cbar'):
self.cbar.remove()
self.cbax_bg.remove()
try:
self.cbar.remove()
self.cbax_bg.remove()
except Exception as e:
print('Warning: could not remove color bar or color bar bg.\nReason: {}'.format(e))
del (self.cbar, self.cbax_bg)
if hasattr(self, 'sc_picked'):
self.sc_picked.remove()