Plot lines and/or markers with errorbars around them. *x*/*y*/*z* define the data locations, and *xerr*/*yerr*/*zerr* define the errorbar sizes. By default, this draws the data markers/lines as well the errorbars. Use fmt='none' to draw errorbars only. Para
(self, x, y, z, zerr=None, yerr=None, xerr=None, fmt='',
barsabove=False, errorevery=1, ecolor=None, elinewidth=None,
capsize=None, capthick=None, xlolims=False, xuplims=False,
ylolims=False, yuplims=False, zlolims=False, zuplims=False,
axlim_clip=False,
**kwargs)
| 3826 | |
| 3827 | @_preprocess_data(replace_names=["x", "y", "z", "xerr", "yerr", "zerr"]) |
| 3828 | def errorbar(self, x, y, z, zerr=None, yerr=None, xerr=None, fmt='', |
| 3829 | barsabove=False, errorevery=1, ecolor=None, elinewidth=None, |
| 3830 | capsize=None, capthick=None, xlolims=False, xuplims=False, |
| 3831 | ylolims=False, yuplims=False, zlolims=False, zuplims=False, |
| 3832 | axlim_clip=False, |
| 3833 | **kwargs): |
| 3834 | """ |
| 3835 | Plot lines and/or markers with errorbars around them. |
| 3836 | |
| 3837 | *x*/*y*/*z* define the data locations, and *xerr*/*yerr*/*zerr* define |
| 3838 | the errorbar sizes. By default, this draws the data markers/lines as |
| 3839 | well the errorbars. Use fmt='none' to draw errorbars only. |
| 3840 | |
| 3841 | Parameters |
| 3842 | ---------- |
| 3843 | x, y, z : float or array-like |
| 3844 | The data positions. |
| 3845 | |
| 3846 | xerr, yerr, zerr : float or array-like, shape (N,) or (2, N), optional |
| 3847 | The errorbar sizes: |
| 3848 | |
| 3849 | - scalar: Symmetric +/- values for all data points. |
| 3850 | - shape(N,): Symmetric +/-values for each data point. |
| 3851 | - shape(2, N): Separate - and + values for each bar. First row |
| 3852 | contains the lower errors, the second row contains the upper |
| 3853 | errors. |
| 3854 | - *None*: No errorbar. |
| 3855 | |
| 3856 | Note that all error arrays should have *positive* values. |
| 3857 | |
| 3858 | fmt : str, default: '' |
| 3859 | The format for the data points / data lines. See `.plot` for |
| 3860 | details. |
| 3861 | |
| 3862 | Use 'none' (case-insensitive) to plot errorbars without any data |
| 3863 | markers. |
| 3864 | |
| 3865 | ecolor : :mpltype:`color`, optional |
| 3866 | The color of the errorbar lines. If not given, use the color of the |
| 3867 | line connecting the markers. |
| 3868 | |
| 3869 | elinewidth : float, optional |
| 3870 | The linewidth of the errorbar lines. If not given, the linewidth of |
| 3871 | the current style is used. |
| 3872 | |
| 3873 | capsize : float, default: :rc:`errorbar.capsize` |
| 3874 | The length of the error bar caps in points. |
| 3875 | |
| 3876 | capthick : float, default: None |
| 3877 | An alias to the keyword argument *markeredgewidth* (a.k.a. *mew*). |
| 3878 | This setting is a more sensible name for the property that |
| 3879 | controls the thickness of the error bar cap in points. For |
| 3880 | backwards compatibility, if *mew* or *markeredgewidth* are given, |
| 3881 | then they will over-ride *capthick*. This may change in future |
| 3882 | releases. |
| 3883 | |
| 3884 | barsabove : bool, default: False |
| 3885 | If True, will plot the errorbars above the plot |