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

Skip to content

Commit 2811640

Browse files
committed
Merge pull request #6842 from LindyBalboa/fix_issue_6479
DOC: Clarify Axes.hexbin *extent* docstring
1 parent 7e938fa commit 2811640

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4109,7 +4109,7 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
41094109
*xscale*: [ 'linear' | 'log' ]
41104110
Use a linear or log10 scale on the horizontal axis.
41114111
4112-
*scale*: [ 'linear' | 'log' ]
4112+
*yscale*: [ 'linear' | 'log' ]
41134113
Use a linear or log10 scale on the vertical axis.
41144114
41154115
*mincnt*: [ *None* | a positive integer ]
@@ -4123,7 +4123,12 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
41234123
41244124
*extent*: [ *None* | scalars (left, right, bottom, top) ]
41254125
The limits of the bins. The default assigns the limits
4126-
based on gridsize, x, y, xscale and yscale.
4126+
based on *gridsize*, *x*, *y*, *xscale* and *yscale*.
4127+
4128+
If *xscale* or *yscale* is set to 'log', the limits are
4129+
expected to be the exponent for a power of 10. E.g. for
4130+
x-limits of 1 and 50 in 'linear' scale and y-limits
4131+
of 10 and 1000 in 'log' scale, enter (1, 50, 1, 3).
41274132
41284133
Other keyword arguments controlling color mapping and normalization
41294134
arguments:

0 commit comments

Comments
 (0)