Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0fa897a

Browse files
committed
Added whats new note, documentation for vectorization, doc fix
1 parent 0f93187 commit 0fa897a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Vectorize ``hatch``, ``edgecolor``, ``linewidth`` and ``linestyle`` in *hist* methods
2+
---------------------------------------------------------------------------------------
3+
4+
The parameters ``hatch``, ``edgecolor``, ``linewidth`` and ``linestyle`` of the `~matplotlib.axes.Axes.hist` method are now vectorized.
5+
This means that you can pass a list of values to these parameters, and the values will be applied to each dataset in the histogram.

galleries/examples/statistics/histogram_multihist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
# %%
4949
# Setting properties for each sample set
50-
# ------------
50+
# --------------------------------------
5151
#
5252
# Plotting a bar chart with sample sets differentiated using:
5353
#

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6937,7 +6937,9 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
69376937
DATA_PARAMETER_PLACEHOLDER
69386938
69396939
**kwargs
6940-
`~matplotlib.patches.Patch` properties
6940+
`~matplotlib.patches.Patch` properties. The following properties
6941+
additionally accept lists of property values, one element for each dataset:
6942+
*edgecolors*, *linewidths*, *linestyles*, *hatches*.
69416943
69426944
See Also
69436945
--------

0 commit comments

Comments
 (0)