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 datetime
|
||||
import numpy as np
|
||||
import math
|
||||
|
||||
from matplotlib.figure import Figure
|
||||
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,
|
||||
title=None):
|
||||
_axes.plot(x, y)
|
||||
_axes.plot(x, y())
|
||||
if title:
|
||||
_axes.set_title(title)
|
||||
if xlabel:
|
||||
@ -242,6 +243,7 @@ class ComparisonDialog(QDialog):
|
||||
std=std, exp=exp)
|
||||
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]',
|
||||
'propability density [-]', phase)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user