Skip to content

Commit af87fb4

Browse files
authored
Merge pull request #6842 from LindyBalboa/fix_issue_6479
DOC: Clarify Axes.hexbin *extent* docstring
2 parents 13b6f43 + bed7c7b commit af87fb4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/matplotlib/axes/_axes.py

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

0 commit comments

Comments
 (0)