Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af87fb4

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

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+7-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.