mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
feat: Added wrapper for errorbar matplotlib method for more convenient
plotting.
This commit is contained in:
parent
88fd37b241
commit
6ed357b51d
2 changed files with 52 additions and 0 deletions
17
tests/misc_test.py
Normal file
17
tests/misc_test.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
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)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue