mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 20:43:41 +02:00
__repr__ of Obs changed to more convenient form
This commit is contained in:
parent
5f1fb285f5
commit
ea51df3719
2 changed files with 9 additions and 6 deletions
|
@ -402,7 +402,7 @@ class Corr:
|
|||
|
||||
if plateau:
|
||||
if isinstance(plateau, Obs):
|
||||
ax1.axhline(y=plateau.value, linewidth=2, color=plt.rcParams['text.color'], alpha=0.6, marker=',', ls='--', label=plateau.__repr__()[4:-1])
|
||||
ax1.axhline(y=plateau.value, linewidth=2, color=plt.rcParams['text.color'], alpha=0.6, marker=',', ls='--', label=plateau.__repr__())
|
||||
ax1.axhspan(plateau.value - plateau.dvalue, plateau.value + plateau.dvalue, alpha=0.25, color=plt.rcParams['text.color'], ls='-')
|
||||
else:
|
||||
raise Exception('plateau must be an Obs')
|
||||
|
@ -451,7 +451,7 @@ class Corr:
|
|||
else:
|
||||
content_string += str(i + range[0])
|
||||
for element in sub_corr:
|
||||
content_string += '\t' + element.__repr__()[4:-1]
|
||||
content_string += '\t' + element.__repr__()
|
||||
content_string += '\n'
|
||||
return content_string
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue