Fixed bug in plot_pdf: wrong input for _axes.plot, method instead of values of method!
This commit is contained in:
parent
a3d3c02773
commit
200695e7ca
@ -9,6 +9,7 @@ import warnings
|
|||||||
import copy
|
import copy
|
||||||
import datetime
|
import datetime
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
import math
|
||||||
|
|
||||||
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
|
||||||
@ -50,7 +51,7 @@ def getDataType(parent):
|
|||||||
|
|
||||||
def plot_pdf(_axes, x, y, annotation, bbox_props, xlabel=None, ylabel=None,
|
def plot_pdf(_axes, x, y, annotation, bbox_props, xlabel=None, ylabel=None,
|
||||||
title=None):
|
title=None):
|
||||||
_axes.plot(x, y)
|
_axes.plot(x, y())
|
||||||
if title:
|
if title:
|
||||||
_axes.set_title(title)
|
_axes.set_title(title)
|
||||||
if xlabel:
|
if xlabel:
|
||||||
@ -242,6 +243,7 @@ class ComparisonDialog(QDialog):
|
|||||||
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)
|
||||||
|
|
||||||
|
if math.isnan(std) == False:
|
||||||
plot_pdf(_axes, x, y, annotation, bbox_props, 'time difference [s]',
|
plot_pdf(_axes, x, y, annotation, bbox_props, 'time difference [s]',
|
||||||
'propability density [-]', phase)
|
'propability density [-]', phase)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user