=
()
=
(
10
)
=
2.5
*
(
/
20
*
)
=
(
0.05
,
0.2
,
10
)
(
,
+
3
,
=
,
label
=
'both limits (default)'
)
(
,
+
2
,
=
,
uplims
=
True
,
label
=
'uplims=True'
)
(
,
+
1
,
=
,
uplims
=
True
,
lolims
=
True
,
label
=
'uplims=True, lolims=True'
)
=
[
True
,
False
]
*
5
=
[
False
,
True
]
*
5
(
,
,
=
,
uplims
=
,
lolims
=
,
label
=
'subsets of uplims and lolims'
)
(
loc
=
'lower right'
)
Similarly xuplims and xlolims can be used on the horizontal xerr
errorbars.
fig = plt.figure()
x = np.arange(10) / 10
y = (x + 0.1)**2
plt.errorbar(x, y, xerr=0.1, xlolims=True, label='xlolims=True')
y = (x + 0.1)**3
plt.errorbar(x + 0.6, y, xerr=0.1, xuplims=upperlimits, xlolims=lowerlimits,
label='subsets of xuplims and xlolims')
y = (x + 0.1)**4
plt.errorbar(x + 1.2, y, xerr=0.1, xuplims=True, label='xuplims=True')
plt.legend()
plt.show()
Total running time of the script: (0 minutes 1.098 seconds)