@@ -2628,11 +2628,12 @@ def bar(
2628
2628
Apply to each column (``axis=0`` or ``'index'``), to each row
2629
2629
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
2630
2630
with ``axis=None``.
2631
- color : str or 2-tuple/list
2631
+ color : str, 2-tuple/list, matplotlib Colormap
2632
2632
If a str is passed, the color is the same for both
2633
2633
negative and positive numbers. If 2-tuple/list is used, the
2634
2634
first element is the color_negative and the second is the
2635
- color_positive (eg: ['#d65f5f', '#5fba7d']).
2635
+ color_positive (eg: ['#d65f5f', '#5fba7d']). Alternatively, assigns
2636
+ colors from a Colormap based on the datavalues.
2636
2637
width : float, default 100
2637
2638
The percentage of the cell, measured from the left, in which to draw the
2638
2639
bars, in [0, 100].
@@ -2675,6 +2676,12 @@ def bar(
2675
2676
Returns
2676
2677
-------
2677
2678
self : Styler
2679
+
2680
+ Notes
2681
+ -----
2682
+ This section of the user guide:
2683
+ `Table Visualization <../../user_guide/style.ipynb>`_ gives
2684
+ a number of examples for different settings and color coordination.
2678
2685
"""
2679
2686
if not (0 <= width <= 100 ):
2680
2687
raise ValueError (f"`width` must be a value in [0, 100], got { width } " )
0 commit comments