Пример #1
0
def test_draw_residual_ulh_norm():
    np.random.seed(0)
    data = np.random.randn(1000)
    ulh = UnbinnedLH(gaussian, data)
    ulh.draw_residual(args=(0., 1.), norm=True)
    plt.ylim(-7., 3.)
    plt.xlim(-4., 3.)
Пример #2
0
def test_draw_residual_ulh_norm_options():
    np.random.seed(0)
    data = np.random.randn(1000)
    ulh = UnbinnedLH(gaussian, data)
    ulh.draw_residual(args=(0., 1.),
                      norm=True,
                      color='green',
                      capsize=2,
                      grid=False,
                      zero_line=False)
Пример #3
0
def test_draw_ulh_extend_residual_norm():
    np.random.seed(0)
    data = np.random.randn(1000)
    ulh = UnbinnedLH(Extended(gaussian), data, extended=True)
    ulh.draw_residual(args=(0., 1., 1000), norm=True)
    plt.ylim(-7.,3.)
Пример #4
0
def test_draw_residual_ulh_norm_options():
    np.random.seed(0)
    data = np.random.randn(1000)
    ulh = UnbinnedLH(gaussian, data)
    ulh.draw_residual(args=(0., 1.), norm=True, color='green', capsize=2,
                      grid=False, zero_line=False)
Пример #5
0
def test_draw_residual_ulh_norm():
    np.random.seed(0)
    data = np.random.randn(1000)
    ulh = UnbinnedLH(gaussian, data)
    ulh.draw_residual(args=(0., 1.), norm=True, show_errbars=False)
Пример #6
0
def test_draw_residual_ulh():
    np.random.seed(0)
    data = np.random.randn(1000)
    ulh = UnbinnedLH(gaussian, data)
    ulh.draw_residual(args=(0., 1.))
Пример #7
0
def test_draw_residual_ulh_norm():
    np.random.seed(0)
    data = np.random.randn(1000)
    plt.figure()
    ulh = UnbinnedLH(gaussian, data)
    ulh.draw_residual(args=(0., 1.), norm=True)