Skip to content

Commit 64b667e

Browse files
authored
Merge pull request matplotlib#31644 from meeseeksmachine/auto-backport-of-pr-31579-on-v3.11.x
Backport PR matplotlib#31579 on branch v3.11.x (DOC: Document that bar() errorbars do not support individual coloring)
2 parents f980031 + f821c45 commit 64b667e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,11 +2409,16 @@ 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
24152417
ecolor : :mpltype:`color` or list of :mpltype:`color`, default: 'black'
24162418
The line color of the errorbars.
2419+
Multiple colors are only supported if the errorbars do not have
2420+
caps. If you need individually colored errorbars with caps, instead
2421+
use explicit `~.axes.Axes.errorbar` calls for each data point.
24172422
24182423
capsize : float, default: :rc:`errorbar.capsize`
24192424
The length of the error bar caps in points.

0 commit comments

Comments
 (0)