Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

2D Normalization & Colormapping for ScalerMappables#8738

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
patniharshit wants to merge35 commits intomatplotlib:mainfrompatniharshit:norm2d
Closed
Changes from1 commit
Commits
Show all changes
35 commits
Select commitHold shift + click to select a range
201dc2a
Initailize class 2D norm
patniharshitJun 9, 2017
7217536
Change name of class to BivariateNorm, take normalizer instances sepa…
patniharshitJun 9, 2017
0178730
Bivariate works with imshow, pcolor, pcolormesh, pcolorfast
patniharshitJul 3, 2017
575a244
add blank line between bivariate classes
patniharshitJul 9, 2017
8425637
Add support for bivariate in scatter
patniharshitJul 9, 2017
4a5831d
Fix missing norm2 in BivaraiteNorm
patniharshitJul 11, 2017
85df736
Fixed bug in if condition bivariate mapping
patniharshitJul 12, 2017
8e1bc63
Add autoscale, autoscale_None, scaled methods for BivariateNorm
patniharshitJul 13, 2017
a9aace3
trying to show ticks and labels on both x and y axis
patniharshitJul 16, 2017
55a7a68
commented outline code, changed gridspace to show sqaure colorbar
patniharshitJul 17, 2017
c2eb617
2d colorbar printing now
patniharshitJul 17, 2017
daef751
Add code for Colorsquare
patniharshitJul 22, 2017
96af3d3
Modify axis aspect and fraction for colorsquare
patniharshitJul 22, 2017
9285372
fix failing commits
patniharshitJul 22, 2017
01b5932
Change PEP8 violations
patniharshitJul 27, 2017
28288e2
Revert isBivari, remove classic locator
patniharshitJul 29, 2017
ca2b111
Subclass normalizers from Abstract Base Class
patniharshitAug 2, 2017
75b4eba
move _ticker function inside update_ticks
patniharshitAug 2, 2017
bf65847
move _ticker function inside update_ticks
patniharshitAug 2, 2017
f9dc4b1
remove cmap in imshow and pcolorfast
patniharshitAug 5, 2017
8a985f0
Defer call to norm and cmap in imshow
patniharshitAug 7, 2017
8f6928d
Fix bivariate handling with pcolormesh
patniharshitAug 15, 2017
d54cb44
Make pcolor work with bivariate
patniharshitAug 16, 2017
4d03552
Do 2D->1D mapping in call method of colormap
patniharshitAug 20, 2017
2573610
Use list comprehensions to ravel
patniharshitAug 20, 2017
9228480
Reflect on reviews
patniharshitAug 21, 2017
5c8dc65
Update docstrings
patniharshitAug 25, 2017
21ea65f
Add bivariate example
patniharshitAug 25, 2017
b8d43a9
Treat one as slightly less than one
patniharshitAug 25, 2017
7681d14
Change conditions for bivar
patniharshitAug 25, 2017
59f56af
Add image comparison test for bivariate
patniharshitAug 25, 2017
f98978f
Update is_bivar condition to expect either BivariateNorm or Bivariate…
patniharshitAug 26, 2017
75a289f
Add line continuation in docstrings
patniharshitAug 27, 2017
7803974
Debug doc build fail
patniharshitAug 28, 2017
e40c87b
Add missing symbols in docs
patniharshitAug 28, 2017
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
PrevPrevious commit
NextNext commit
Add line continuation in docstrings
  • Loading branch information
@patniharshit
patniharshit committedAug 27, 2017
commit75a289fcbfcf8f772b80de689c3faaa71191cbdb
18 changes: 10 additions & 8 deletionslib/matplotlib/axes/_axes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5054,7 +5054,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
to colors based on the `norm` (mapping scalar to scalar)
and the `cmap` (mapping the normed scalar to a color).

cmap : `~matplotlib.colors.Colormap`,
cmap : `~matplotlib.colors.Colormap`, \
`~matplotlib.colors.BivariateColormap`optional, default: None
If None, default to rc `image.cmap` value. `cmap` is ignored
if `X` is 3-D but not bivariate, directly specifying RGB(A) values.
Expand All@@ -5081,7 +5081,7 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
on the Agg, ps and pdf backends. Other backends will fall back to
'nearest'.

norm : `~matplotlib.colors.Normalize`,
norm : `~matplotlib.colors.Normalize`, \
`matplotlib.colors.BivariateNorm` optional, default: None
A `~matplotlib.colors.Normalize` instance is used to scale
a 2-D float `X` input to the (0, 1) range for input to the
Expand DownExpand Up@@ -5302,10 +5302,12 @@ def pcolor(self, *args, **kwargs):
vectors, they will be expanded as needed into the appropriate 2-D
arrays, making a rectangular grid.

cmap : `~matplotlib.colors.Colormap`, optional, default: None
cmap : `~matplotlib.colors.Colormap` or \
`matplotlib.colors.BivariateColormap` optional, default: None
If `None`, default to rc settings.

norm : `matplotlib.colors.Normalize`, optional, default: None
norm : `matplotlib.colors.Normalize` or \
`matplotlib.colors.BivariateNorm` optional, default: None
An instance is used to scale luminance data to (0, 1).
If `None`, defaults to :func:`normalize`.

Expand DownExpand Up@@ -5572,12 +5574,12 @@ def pcolormesh(self, *args, **kwargs):
Keyword arguments:

*cmap*: [ *None* | Colormap ]
A :class:`matplotlib.colors.Colormap` or
A :class:`matplotlib.colors.Colormap` or \
:class:`matplotlib.colors.BivariateColormap`instance. If *None*,
use rc settings.

*norm*: [ *None* | Normalize ]
A :class:`matplotlib.colors.Normalize` or
A :class:`matplotlib.colors.Normalize` or \
:class:`matplotlib.colors.BivariateNorm` instance is used to
scale luminance data to 0,1. If *None*, defaults to
:func:`normalize`.
Expand DownExpand Up@@ -5765,12 +5767,12 @@ def pcolorfast(self, *args, **kwargs):
Optional keyword arguments:

*cmap*: [ *None* | Colormap ]
A :class:`matplotlib.colors.Colormap` or
A :class:`matplotlib.colors.Colormap` or \
:class:`matplotlib.colors.BivariateColormap` instance from cm.
If *None*, use rc settings.

*norm*: [ *None* | Normalize ]
A :class:`matplotlib.colors.Normalize` or
A :class:`matplotlib.colors.Normalize` or \
:class:`matplotlib.colors.BivariateNorm` instance is used to scale
luminance data to 0,1. If *None*, defaults to normalize()

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp