Fixed bug in plot_pdf: wrong input for _axes.plot, method instead of values of method!

This commit is contained in:
Ludger Küperkoch 2017-02-09 16:59:47 +01:00
parent a3d3c02773
commit 200695e7ca

View File

@ -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)