mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat: skew and kurtosis added to Obs.plot_history
This commit is contained in:
parent
bb3a15d69b
commit
4f3b2d22d5
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import numpy as np
|
|||
import autograd.numpy as anp # Thinly-wrapped numpy
|
||||
from autograd import jacobian
|
||||
import matplotlib.pyplot as plt
|
||||
from scipy.stats import kurtosis, skew
|
||||
import numdifftools as nd
|
||||
from itertools import groupby
|
||||
from .covobs import Covobs
|
||||
|
@ -564,7 +565,7 @@ class Obs:
|
|||
y = np.concatenate(tmp, axis=0)
|
||||
plt.errorbar(x, y, fmt='.', markersize=3)
|
||||
plt.xlim(-0.5, e_N - 0.5)
|
||||
plt.title(e_name)
|
||||
plt.title(e_name + f', skew: {skew(y):2.3f}, kurtosis: {kurtosis(y):2.3f}')
|
||||
plt.draw()
|
||||
|
||||
def plot_piechart(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue