-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add note about hist2d resetting axis limits #11071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/matplotlib/axes/_axes.py
Outdated
@@ -6510,31 +6510,33 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None, | |||
Other Parameters | |||
---------------- | |||
cmap : Colormap or str, optional | |||
A :class:`matplotlib.colors.Colormap` instance. If not set, use rc | |||
A :class:`.colors.Colormap` instance. If not set, use rc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are using 'obj' as the default role, :class:
should now be left out for improved readability.
lib/matplotlib/axes/_axes.py
Outdated
settings. | ||
|
||
norm : Normalize, optional | ||
A :class:`matplotlib.colors.Normalize` instance is used to | ||
A :class:`.colors.Normalize` instance is used to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:class:
lib/matplotlib/axes/_axes.py
Outdated
scale luminance data to ``[0, 1]``. If not set, defaults to | ||
``Normalize()``. | ||
:class:`.colors.Normalize()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:class:
lib/matplotlib/axes/_axes.py
Outdated
|
||
vmin/vmax : None or scalar, optional | ||
Arguments passed to the `Normalize` instance. | ||
Arguments passed to the :class:`~.colors.Normalize` instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:class:
lib/matplotlib/axes/_axes.py
Outdated
- Currently ``hist2d`` calculates it's own axis limits, and any limits | ||
previously set are ignored. | ||
- Rendering the histogram with a logarithmic color scale is | ||
accomplished by passing a :class:`.colors.LogNorm` instance to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:class:
lib/matplotlib/axes/_axes.py
Outdated
accomplished by passing a :class:`.colors.LogNorm` instance to | ||
the *norm* keyword argument. Likewise, power-law normalization | ||
(similar in effect to gamma correction) can be accomplished with | ||
:class:`.colors.PowerNorm`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:class:
There seem to be a conflict, please backport manually |
@meeseeksdev backport to v2.2.2-doc |
There seem to be a conflict, please backport manually |
.py files should not be backported to that branch. |
Huh, but lots of .py stuff has been backported (e.g. #11046)? |
@meeseeksdev backport to v2.2.x @dstansby That was a mistake, I will back that out. |
There seem to be a conflict, please backport manually |
Add note about hist2d resetting axis limits Conflicts: lib/matplotlib/axes/_axes.py - kept master branch version of docstrings
backported to v2.2.x as 636a06d |
Maybe fixes #3815? I've also added a couple of other bits of markup to make the docstring nicer in general.