Title: AxesImage.set_cmap() and AxesImage.set_clim() have no effects. · Issue #2454 · matplotlib/matplotlib · GitHub
Open Graph Title: AxesImage.set_cmap() and AxesImage.set_clim() have no effects. · Issue #2454 · matplotlib/matplotlib
X Title: AxesImage.set_cmap() and AxesImage.set_clim() have no effects. · Issue #2454 · matplotlib/matplotlib
Description: 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 howev...
Open Graph Description: 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 chang...
X Description: 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 howeve...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2454
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AxesImage.set_cmap() and AxesImage.set_clim() have no effects.","articleBody":"Hi,\nthe following code doesn't work as intended:\n\n```\nimport matplotlib as mp\nimport pylab as pl\nim = pl.imshow(pl.rand(100,100))\nim.set_cmap(\"gray\") #has no effects!!!\n```\n\nThe colormap however can be changed using\n\n```\npl.set_cmap(\"gray\") #this however requires that the image for which one wants\n# to change the colormap is the active one\n```\n\nSimilarly:\n\n```\nim.set_clim(vmin=0.25, vmax = 0.75) # has no effect\n```\n\nI am using matplotlib 1.3.0.\n","author":{"url":"https://github.com/lucacerone","@type":"Person","name":"lucacerone"},"datePublished":"2013-09-23T22:33:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2454/matplotlib/issues/2454"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b252c8b-5dba-3243-d85f-042014d6f22f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D88:299504:B352BC:F18F6E:6A531914 |
| html-safe-nonce | d9c6410d4d6fa6a4e54f3183f851760fb43ddff7238fea9ec29445cb5b7f7646 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDg4OjI5OTUwNDpCMzUyQkM6RjE4RjZFOjZBNTMxOTE0IiwidmlzaXRvcl9pZCI6Ijk5NDE5NjIwOTY2ODM5NzMzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 293229b87a35205f92d20aa95b33089c01626b9ca3cd0b44844d87a4ced40b5d |
| hovercard-subject-tag | issue:19945883 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/2454/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8622453b4aef680c6cce103e42ac0e0979c28911b1fd25a637433a62b751cc77/matplotlib/matplotlib/issues/2454 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8622453b4aef680c6cce103e42ac0e0979c28911b1fd25a637433a62b751cc77/matplotlib/matplotlib/issues/2454 |
| og:image:alt | 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 chang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lucacerone |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width