mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
18 lines
402 B
Python
18 lines
402 B
Python
|
import numpy as np
|
||
|
import matplotlib.pyplot as plt
|
||
|
import pyerrors as pe
|
||
|
import pytest
|
||
|
|
||
|
|
||
|
def test_obs_errorbar():
|
||
|
x_float = np.arange(5)
|
||
|
x_obs = []
|
||
|
y_obs = []
|
||
|
for x in x_float:
|
||
|
x_obs.append(pe.pseudo_Obs(x, 0.1, "test"))
|
||
|
y_obs.append(pe.pseudo_Obs(x ** 2, 0.1, "test"))
|
||
|
|
||
|
pe.errorbar(x_float, y_obs, marker="x", ms=2)
|
||
|
pe.errorbar(x_obs, y_obs, marker="x", ms=2)
|
||
|
|