8000 WIP: Add offset normalizer by phobson · Pull Request #3858 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

WIP: Add offset normalizer #3858

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

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix OffsetNorm docstring to numpydoc spec
  • Loading branch information
phobson committed Mar 30, 2015
commit 5e7c187b71d4d0286bf58676d3eb92a268f33083
8 changes: 4 additions & 4 deletions lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,19 +978,19 @@ def __init__(self, vmin=None, vcenter=None, vmax=None, clip=False):

Parameters
----------
vmin : optional float
vmin : float, optional
The data value that defines ``0.0`` in the normalized data.
Defaults to the min value of the dataset.

vcenter : optional float
vcenter : float, optional
The data value that defines ``0.5`` in the normalized data.
Defaults to halfway between *vmin* and *vmax*.

vmax : option float
vmax : float, optional
The data value that defines ``1.0`` in the normalized data.
Defaults to the the max value of the dataset.

clip : optional bool (default is False)
clip : bool, optional (default is False)
If *clip* is True, values beyond *vmin* and *vmax* will be set
to ``0.0`` or ``1.0``, respectively. Otherwise, values outside
the ``[0.0, 1.0]`` will be returned.
Expand Down
0