Skip to content

Commit f35010c

Browse files
committed
DOC: Document that bar() errorbars do not support individual coloring
Closes matplotlib#14480.
1 parent 05b9179 commit f35010c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,9 +2409,18 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
24092409
errors.
24102410
- *None*: No errorbar. (Default)
24112411
2412-
See :doc:`/gallery/statistics/errorbar_features` for an example on
2412+
This is a convenience shortcut for an extra `~.axes.Axes.errorbar`
2413+
call. See its documentation and
2414+
:doc:`/gallery/statistics/errorbar_features` for an example on
24132415
the usage of *xerr* and *yerr*.
24142416
2417+
Errorbars are not officially supported when bars are
2418+
individually colored, because the underlying `~.axes.Axes.errorbar`
2419+
is not designed for individual coloring per data point. It may partly
2420+
work for certain errorbar settings, but that's an implementation detail
2421+
that is not guaranteed. Please use explicit `~.axes.Axes.errorbar`
2422+
calls for each data point if you need individually colored errorbars.
2423+
24152424
ecolor : :mpltype:`color` or list of :mpltype:`color`, default: 'black'
24162425
The line color of the errorbars.
24172426

0 commit comments

Comments
 (0)