8000 Merge pull request #20485 from sappelhoff/fix/docstr/hexbin · matplotlib/matplotlib@6f92db0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f92db0

Browse files
authored
Merge pull request #20485 from sappelhoff/fix/docstr/hexbin
DOC: hexbin 'extent' must be 4-tuple of float, not float
2 parents 2a3037f + 569336b commit 6f92db0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4647,17 +4647,16 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
46474647
colormapped rectangles along the bottom of the x-axis and
46484648
left of the y-axis.
46494649
4650-
extent : float, default: *None*
4651-
The limits of the bins. The default assigns the limits
4652-
based on *gridsize*, *x*, *y*, *xscale* and *yscale*.
4650+
extent : 4-tuple of float, default: *None*
4651+
The limits of the bins (xmin, xmax, ymin, ymax).
4652+
The default assigns the limits based on
4653+
*gridsize*, *x*, *y*, *xscale* and *yscale*.
46534654
46544655
If *xscale* or *yscale* is set to 'log', the limits are
46554656
expected to be the exponent for a power of 10. E.g. for
46564657
x-limits of 1 and 50 in 'linear' scale and y-limits
46574658
of 10 and 1000 in 'log' scale, enter (1, 50, 1, 3).
46584659
4659-
Order of scalars is (left, right, bottom, top).
4660-
46614660
Returns
46624661
-------
46634662
`~matplotlib.collections.PolyCollection`

0 commit comments

Comments
 (0)
0