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

AxesImage.set_cmap() and AxesImage.set_clim() have no effects. #2454

Closed
lucacerone opened this issue Sep 23, 2013 · 1 comment
Closed

AxesImage.set_cmap() and AxesImage.set_clim() have no effects. #2454

lucacerone opened this issue Sep 23, 2013 · 1 comment

Comments

@lucacerone
Copy link

Hi,
the following code doesn't work as intended:

import matplotlib as mp
import pylab as pl
im = pl.imshow(pl.rand(100,100))
im.set_cmap("gray") #has no effects!!!

The colormap however can be changed using

pl.set_cmap("gray") #this however requires that the image for which one wants
# to change the colormap is the active one

Similarly:

im.set_clim(vmin=0.25, vmax = 0.75) # has no effect

I am using matplotlib 1.3.0.

@efiring
Copy link
Member

efiring commented Sep 23, 2013

See the reply at the end of the #896 discussion.

@efiring efiring closed this as completed Sep 23, 2013
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

No branches or pull requests

2 participants