Skip to content

Commit 56d2373

Browse files
authored
DOC: Document that bar() errorbars do not support individual coloring (matplotlib#31579)
* DOC: Document that bar() errorbars do not support individual coloring Closes matplotlib#14480. * Apply suggestions from code review Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> * Apply suggestion from @timhoffm
1 parent 0302a27 commit 56d2373

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
@@ -2410,11 +2410,16 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
24102410
errors.
24112411
- *None*: No errorbar. (Default)
24122412
2413-
See :doc:`/gallery/statistics/errorbar_features` for an example on
2413+
This is a convenience shortcut for an extra `~.axes.Axes.errorbar`
2414+
call. See its documentation and
2415+
:doc:`/gallery/statistics/errorbar_features` for an example on
24142416
the usage of *xerr* and *yerr*.
24152417
24162418
ecolor : :mpltype:`color` or list of :mpltype:`color`, default: 'black'
24172419
The line color of the errorbars.
2420+
Multiple colors are only supported if the errorbars do not have
2421+
caps. If you need individually colored errorbars with caps, instead
2422+
use explicit `~.axes.Axes.errorbar` calls for each data point.
24182423
24192424
capsize : float, default: :rc:`errorbar.capsize`
24202425
The length of the error bar caps in points.

0 commit comments

Comments
 (0)