From 049b2b6991fb0eb88540351b6d5d4f92d2bb80d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 21 Feb 2017 14:05:41 +0100 Subject: [PATCH] Cosmetics. --- pylot/core/util/widgets.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 23cb0f84..9a902d0f 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -10,6 +10,7 @@ import copy import datetime import numpy as np +from PyQt4.QtCore import pyqtRemoveInputHook from matplotlib.figure import Figure from pylot.core.util.utils import find_horizontals @@ -237,8 +238,8 @@ class ComparisonDialog(QDialog): pdf.expectation() annotation = "{phase} difference on {station}\n" \ - "expectation: {exp}\n" \ - "std: {std}".format(station=station, phase=phase, + "expectation: {exp} s\n" \ + "std: {std} s".format(station=station, phase=phase, std=std, exp=exp) bbox_props = dict(boxstyle='round', facecolor='lightgrey', alpha=.7) @@ -267,13 +268,13 @@ class ComparisonDialog(QDialog): # set annotation text mannotation = "probability density for manual pick\n" \ - "expectation: {exp}\n" \ - "std: {std}".format(std=stdmanu, + "expectation: {exp} s\n" \ + "std: {std} s".format(std=stdmanu, exp=expmanu-x0.timestamp) aannotation = "probability density for automatic pick\n" \ - "expectation: {exp}\n" \ - "std: {std}".format(std=stdauto, + "expectation: {exp} s\n" \ + "std: {std} s".format(std=stdauto, exp=expauto-x0.timestamp) _ax1 = plot_pdf(_ax1, xmanu, ymanu, mannotation,