Skip to content
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

Add colormap to plot.ImagePlot #26

Merged
merged 5 commits into from
Jan 31, 2020
Merged

Conversation

Zhitao-Li
Copy link
Contributor

A colormap can now be set in constructing the ImagePlot class, and when
a colormap is set, a colorbar will be automatically added to the right
of the image.

A colormap can now be set in constructing the ImagePlot class, and when
a colormap is set, a colorbar will be automatically added to the right
of the image.
sigpy/plot.py Outdated
@@ -100,6 +101,7 @@ def __init__(
self.title = title
self.interpolation = interpolation
self.mode = mode
self.colormap=colormap
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Zhitao-Li , sorry for the late reply. Can you add spaces around the equal sign? This is to conform with PEP8

This display range will only affect magnitude images, include real
and imaginary part of a complex image, but not phase images, since
phase image has a very different display range.
@frankong frankong merged commit 6364088 into mikgroup:master Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants