Cosmetics.

This commit is contained in:
Ludger Küperkoch 2017-02-21 14:05:41 +01:00
parent f1f54bf7b5
commit 049b2b6991

View File

@ -10,6 +10,7 @@ import copy
import datetime import datetime
import numpy as np import numpy as np
from PyQt4.QtCore import pyqtRemoveInputHook
from matplotlib.figure import Figure from matplotlib.figure import Figure
from pylot.core.util.utils import find_horizontals from pylot.core.util.utils import find_horizontals
@ -237,8 +238,8 @@ class ComparisonDialog(QDialog):
pdf.expectation() pdf.expectation()
annotation = "{phase} difference on {station}\n" \ annotation = "{phase} difference on {station}\n" \
"expectation: {exp}\n" \ "expectation: {exp} s\n" \
"std: {std}".format(station=station, phase=phase, "std: {std} s".format(station=station, phase=phase,
std=std, exp=exp) std=std, exp=exp)
bbox_props = dict(boxstyle='round', facecolor='lightgrey', alpha=.7) bbox_props = dict(boxstyle='round', facecolor='lightgrey', alpha=.7)
@ -267,13 +268,13 @@ class ComparisonDialog(QDialog):
# set annotation text # set annotation text
mannotation = "probability density for manual pick\n" \ mannotation = "probability density for manual pick\n" \
"expectation: {exp}\n" \ "expectation: {exp} s\n" \
"std: {std}".format(std=stdmanu, "std: {std} s".format(std=stdmanu,
exp=expmanu-x0.timestamp) exp=expmanu-x0.timestamp)
aannotation = "probability density for automatic pick\n" \ aannotation = "probability density for automatic pick\n" \
"expectation: {exp}\n" \ "expectation: {exp} s\n" \
"std: {std}".format(std=stdauto, "std: {std} s".format(std=stdauto,
exp=expauto-x0.timestamp) exp=expauto-x0.timestamp)
_ax1 = plot_pdf(_ax1, xmanu, ymanu, mannotation, _ax1 = plot_pdf(_ax1, xmanu, ymanu, mannotation,