mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: hide_sigma in Corr.show now ignores the entry at 0 for the
estimation of the plot range.
This commit is contained in:
parent
8a785601a6
commit
ccb424a251
1 changed files with 2 additions and 2 deletions
|
@ -758,7 +758,7 @@ class Corr:
|
|||
|
||||
x, y, y_err = self.plottable()
|
||||
if hide_sigma:
|
||||
hide_from = np.argmax((hide_sigma * np.array(y_err)) > np.abs(y)) - 1
|
||||
hide_from = np.argmax((hide_sigma * np.array(y_err[1:])) > np.abs(y[1:])) - 1
|
||||
else:
|
||||
hide_from = None
|
||||
ax1.errorbar(x[:hide_from], y[:hide_from], y_err[:hide_from], label=self.tag)
|
||||
|
@ -781,7 +781,7 @@ class Corr:
|
|||
corr.gamma_method()
|
||||
x, y, y_err = corr.plottable()
|
||||
if hide_sigma:
|
||||
hide_from = np.argmax((hide_sigma * np.array(y_err)) > np.abs(y)) - 1
|
||||
hide_from = np.argmax((hide_sigma * np.array(y_err[1:])) > np.abs(y[1:])) - 1
|
||||
else:
|
||||
hide_from = None
|
||||
plt.errorbar(x[:hide_from], y[:hide_from], y_err[:hide_from], label=corr.tag, mfc=plt.rcParams['axes.facecolor'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue