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

Skip to content

Commit 5f650dd

Browse files
authored
Merge pull request #26382 from anntzer/h2dd
Tweak hist2d docstring.
2 parents 6eeede6 + 66937bb commit 5f650dd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7098,13 +7098,13 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
70987098
The bin specification:
70997099
71007100
- If int, the number of bins for the two dimensions
7101-
(nx=ny=bins).
7101+
(``nx = ny = bins``).
71027102
- If ``[int, int]``, the number of bins in each dimension
7103-
(nx, ny = bins).
7103+
(``nx, ny = bins``).
71047104
- If array-like, the bin edges for the two dimensions
7105-
(x_edges=y_edges=bins).
7105+
(``x_edges = y_edges = bins``).
71067106
- If ``[array, array]``, the bin edges in each dimension
7107-
(x_edges, y_edges = bins).
7107+
(``x_edges, y_edges = bins``).
71087108
71097109
The default value is 10.
71107110
@@ -7122,10 +7122,10 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
71227122
An array of values w_i weighing each sample (x_i, y_i).
71237123
71247124
cmin, cmax : float, default: None
7125-
All bins that has count less than *cmin* or more than *cmax* will
7126-
not be displayed (set to NaN before passing to imshow) and these
7127-
count values in the return value count histogram will also be set
7128-
to nan upon return.
7125+
All bins that has count less than *cmin* or more than *cmax* will not be
7126+
displayed (set to NaN before passing to `~.Axes.pcolormesh`) and these count
7127+
values in the return value count histogram will also be set to nan upon
7128+
return.
71297129
71307130
Returns
71317131
-------

0 commit comments

Comments
 (0)