Skip to content

Commit 50f111d

Browse files
authored
Apply suggestions from code review
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent f35010c commit 50f111d

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,15 +2414,12 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
24142414
:doc:`/gallery/statistics/errorbar_features` for an example on
24152415
the usage of *xerr* and *yerr*.
24162416
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-
24242417
ecolor : :mpltype:`color` or list of :mpltype:`color`, default: 'black'
24252418
The line color of the errorbars.
2419+
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.
24262423
24272424
capsize : float, default: :rc:`errorbar.capsize`
24282425
The length of the error bar caps in points.

0 commit comments

Comments
 (0)