| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:48d93002-26a3-676d-5c13-2372d5456bca |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E540:2BE11D:B6F3D:FC9FB:6A51CEDD |
| html-safe-nonce | e1aa6ee428b57ae4777ea99bbc1065d0dcd567780ec29a072e67c6b1ddf39fc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTQwOjJCRTExRDpCNkYzRDpGQzlGQjo2QTUxQ0VERCIsInZpc2l0b3JfaWQiOiI2NzA1MzQwMDc4NTg2MTg3NDg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 58edade0bb9ebbfd4bc605b496794f6fd6b3ec76ded83ebae48c0a85284c41e6 |
| hovercard-subject-tag | pull_request:447795049 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/matplotlib/matplotlib/17888/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/d0b72e9e1572a73fd95173f0e0b565b62f897e092adaaa56a7a3388b5fb59dd6/matplotlib/matplotlib/pull/17888 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0b72e9e1572a73fd95173f0e0b565b62f897e092adaaa56a7a3388b5fb59dd6/matplotlib/matplotlib/pull/17888 |
| og:image:alt | PR Summary
This PR adds _repr_png_ and _repr_html_ methods to the matplotlib.colors.Colormap class, enabling visual representations of Colormap objects in IPython / Jupyter settings.
Demo
Resolves... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bdice |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/matplotlib/matplotlib/pull/17888#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F17888 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F17888 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib |
| Reload | https://github.com/matplotlib/matplotlib/pull/17888 |
| Reload | https://github.com/matplotlib/matplotlib/pull/17888 |
| Reload | https://github.com/matplotlib/matplotlib/pull/17888 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
|
matplotlib
| https://github.com/matplotlib |
| matplotlib | https://github.com/matplotlib/matplotlib |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
|
Notifications
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Fork
8.4k
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Star
23k
| https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib |
|
Code
| https://github.com/matplotlib/matplotlib |
|
Issues
1.1k
| https://github.com/matplotlib/matplotlib/issues |
|
Pull requests
409
| https://github.com/matplotlib/matplotlib/pulls |
|
Actions
| https://github.com/matplotlib/matplotlib/actions |
|
Projects
| https://github.com/matplotlib/matplotlib/projects |
|
Wiki
| https://github.com/matplotlib/matplotlib/wiki |
|
Security and quality
0
| https://github.com/matplotlib/matplotlib/security |
|
Insights
| https://github.com/matplotlib/matplotlib/pulse |
|
Code
| https://github.com/matplotlib/matplotlib |
|
Issues
| https://github.com/matplotlib/matplotlib/issues |
|
Pull requests
| https://github.com/matplotlib/matplotlib/pulls |
|
Actions
| https://github.com/matplotlib/matplotlib/actions |
|
Projects
| https://github.com/matplotlib/matplotlib/projects |
|
Wiki
| https://github.com/matplotlib/matplotlib/wiki |
|
Security and quality
| https://github.com/matplotlib/matplotlib/security |
|
Insights
| https://github.com/matplotlib/matplotlib/pulse |
| tacaswell | https://github.com/tacaswell |
| matplotlib:master | https://github.com/matplotlib/matplotlib/tree/master |
| bdice:colormap-repr | https://github.com/bdice/matplotlib/tree/colormap-repr |
| Conversation | https://github.com/matplotlib/matplotlib/pull/17888 |
| Commits7 (7) | https://github.com/matplotlib/matplotlib/pull/17888/commits |
| Checks | https://github.com/matplotlib/matplotlib/pull/17888/checks |
| Files changed | https://github.com/matplotlib/matplotlib/pull/17888/files |
| Add _repr_png_ and _repr_html_ to Colormap objects. | https://github.com/matplotlib/matplotlib/pull/17888#top |
| tacaswell | https://github.com/tacaswell |
| matplotlib:master | https://github.com/matplotlib/matplotlib/tree/master |
| bdice:colormap-repr | https://github.com/bdice/matplotlib/tree/colormap-repr |
|
| https://github.com/bdice |
| bdice | https://github.com/bdice |
| Jul 11, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issue-655247988 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://user-images.githubusercontent.com/3943761/87229990-420c1e80-c372-11ea-865e-d7f0f43757d3.png |
| #15616 | https://github.com/matplotlib/matplotlib/issues/15616 |
| Flake 8 | http://flake8.pycqa.org/en/latest/ |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| bdice | https://github.com/bdice |
| July 11, 2020 12:22 | https://github.com/matplotlib/matplotlib/pull/17888#commits-pushed-1cfb18b |
|
| https://github.com/bdice |
| Created _repr_png_ and _repr_html_ for Colormap objects. | https://github.com/matplotlib/matplotlib/pull/17888/commits/1cfb18bbe864673500ad4d82a46d2409ab5e8b6c |
| 1cfb18b | https://github.com/matplotlib/matplotlib/pull/17888/commits/1cfb18bbe864673500ad4d82a46d2409ab5e8b6c |
|
| https://github.com/bdice |
| Add a border to clarify the boundary of the image. | https://github.com/matplotlib/matplotlib/pull/17888/commits/d62cd5558419e0a4b40af63746064878b8aafea3 |
| d62cd55 | https://github.com/matplotlib/matplotlib/pull/17888/commits/d62cd5558419e0a4b40af63746064878b8aafea3 |
|
| https://github.com/bdice |
| Add tests for _repr_png_ and _repr_html_. | https://github.com/matplotlib/matplotlib/pull/17888/commits/d3ca7e251846fa1f10ecd6b2ff8619fd6eee7a25 |
| d3ca7e2 | https://github.com/matplotlib/matplotlib/pull/17888/commits/d3ca7e251846fa1f10ecd6b2ff8619fd6eee7a25 |
|
| https://github.com/bdice |
| Added What's New entry. | https://github.com/matplotlib/matplotlib/pull/17888/commits/34be66eb44719ef1c14998fb399f0c69f136ca32 |
| 34be66e | https://github.com/matplotlib/matplotlib/pull/17888/commits/34be66eb44719ef1c14998fb399f0c69f136ca32 |
| https://github.com/bdice |
| bdice | https://github.com/bdice |
| July 11, 2020 17:49 | https://github.com/matplotlib/matplotlib/pull/17888#event-3536470488 |
| bdice | https://github.com/bdice |
| July 11, 2020 12:52 | https://github.com/matplotlib/matplotlib/pull/17888#commits-pushed-3da7fc4 |
|
| https://github.com/bdice |
| Add PngInfo. | https://github.com/matplotlib/matplotlib/pull/17888/commits/3da7fc44056cec24718a92820161fa0710a2c2fd |
| 3da7fc4 | https://github.com/matplotlib/matplotlib/pull/17888/commits/3da7fc44056cec24718a92820161fa0710a2c2fd |
|
| https://github.com/bdice |
| Update PngInfo. | https://github.com/matplotlib/matplotlib/pull/17888/commits/a490278f1127410ede1a4b5495f213be80749f76 |
| a490278 | https://github.com/matplotlib/matplotlib/pull/17888/commits/a490278f1127410ede1a4b5495f213be80749f76 |
| https://github.com/dopplershift |
| dopplershift | https://github.com/dopplershift |
|
Jul 11, 2020
| https://github.com/matplotlib/matplotlib/pull/17888#pullrequestreview-446821155 |
|
View reviewed changes
| https://github.com/matplotlib/matplotlib/pull/17888/files/a490278f1127410ede1a4b5495f213be80749f76 |
| dopplershift | https://github.com/dopplershift |
| https://github.com/matplotlib/matplotlib/pull/17888#pullrequestreview-446821155 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/dopplershift |
| dopplershift | https://github.com/dopplershift |
| v3.4.0 | https://github.com/matplotlib/matplotlib/milestone/53 |
| Jul 11, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#event-3536504851 |
| https://github.com/dopplershift |
| dopplershift | https://github.com/dopplershift |
| Jul 11, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657109866 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/timhoffm |
| timhoffm | https://github.com/timhoffm |
|
Jul 11, 2020
| https://github.com/matplotlib/matplotlib/pull/17888#pullrequestreview-446828020 |
|
View reviewed changes
| https://github.com/matplotlib/matplotlib/pull/17888/files/a490278f1127410ede1a4b5495f213be80749f76 |
| lib/matplotlib/tests/test_colors.py | https://github.com/matplotlib/matplotlib/pull/17888/files/a490278f1127410ede1a4b5495f213be80749f76#diff-0b4e2edcbe7e1f81d3c7e56ac45d89a3aa1c8481d9204b2c0f497b3261006a87 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/tacaswell |
| tacaswell | https://github.com/tacaswell |
|
Jul 11, 2020
| https://github.com/matplotlib/matplotlib/pull/17888#pullrequestreview-446828560 |
|
View reviewed changes
| https://github.com/matplotlib/matplotlib/pull/17888/files/a490278f1127410ede1a4b5495f213be80749f76 |
| tacaswell | https://github.com/tacaswell |
| https://github.com/matplotlib/matplotlib/pull/17888#pullrequestreview-446828560 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/QuLogic |
| QuLogic | https://github.com/QuLogic |
| Jul 11, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657128361 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/jklymak |
| jklymak | https://github.com/jklymak |
| Jul 11, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657134598 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/tacaswell |
| tacaswell | https://github.com/tacaswell |
| Jul 12, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657230466 |
| @story645 | https://github.com/story645 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
|
| https://github.com/bdice |
| Enforce stricter tests for _repr_png_. | https://github.com/matplotlib/matplotlib/pull/17888/commits/9d4633874ddbf6939d75e0fd02d2a14a8da682f1 |
| 9d46338 | https://github.com/matplotlib/matplotlib/pull/17888/commits/9d4633874ddbf6939d75e0fd02d2a14a8da682f1 |
| https://github.com/tacaswell |
| tacaswell | https://github.com/tacaswell |
| Jul 12, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657250635 |
| @bdice | https://github.com/bdice |
| @bdice | https://github.com/bdice |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/jklymak |
| jklymak | https://github.com/jklymak |
| Jul 12, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657252575 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/tacaswell |
| tacaswell | https://github.com/tacaswell |
| Jul 12, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657261752 |
| https://matplotlib.org/3.2.2/tutorials/colors/colormaps.html | https://matplotlib.org/3.2.2/tutorials/colors/colormaps.html |
| #17900 | https://github.com/matplotlib/matplotlib/pull/17900 |
| @jklymak | https://github.com/jklymak |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/tacaswell |
| tacaswell | https://github.com/tacaswell |
| 068e0f4 | https://github.com/matplotlib/matplotlib/commit/068e0f441cf3137b022167d20c15eb1fb9b07469 |
| Jul 12, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#event-3537350291 |
| https://github.com/tacaswell |
| tacaswell | https://github.com/tacaswell |
| Jul 12, 2020 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-657262403 |
| @bdice | https://github.com/bdice |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/bdice |
| bdice | https://github.com/bdice |
|
Jul 12, 2020
| https://github.com/matplotlib/matplotlib/pull/17888#ref-pullrequest-655450702 |
|
Add getters and _repr_html_ for over/under/bad values of Colormap objects.
#17900
| https://github.com/matplotlib/matplotlib/pull/17900 |
| https://github.com/bdice |
| bdice | https://github.com/bdice |
| July 12, 2020 19:26 | https://github.com/matplotlib/matplotlib/pull/17888#event-3537368842 |
| https://github.com/story645 |
| story645 | https://github.com/story645 |
|
Sep 16, 2020
| https://github.com/matplotlib/matplotlib/pull/17888#ref-pullrequest-703133142 |
|
Add a dedicated ColormapRegistry class
#18503
| https://github.com/matplotlib/matplotlib/pull/18503 |
| https://github.com/michaelosthege |
| michaelosthege | https://github.com/michaelosthege |
| May 20, 2021 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-845253158 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/QuLogic |
| QuLogic | https://github.com/QuLogic |
| May 20, 2021 | https://github.com/matplotlib/matplotlib/pull/17888#issuecomment-845407158 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
| https://github.com/tkoyama010 |
| tkoyama010 | https://github.com/tkoyama010 |
|
Jul 18, 2022
| https://github.com/matplotlib/matplotlib/pull/17888#ref-issue-1307211793 |
|
Feature to show the Color object in color bar
pyvista/pyvista#3017
| https://github.com/pyvista/pyvista/issues/3017 |
| https://github.co/hiddenchars |
| https://github.com/matplotlib/matplotlib/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F17888 |
|
| https://github.com/timhoffm |
|
timhoffm
| https://github.com/timhoffm |
|
| https://github.com/matplotlib/matplotlib/pull/17888/files/a490278f1127410ede1a4b5495f213be80749f76 |
|
| https://github.com/tacaswell |
|
tacaswell
| https://github.com/tacaswell |
|
| https://github.com/matplotlib/matplotlib/pull/17888/files/a490278f1127410ede1a4b5495f213be80749f76 |
|
| https://github.com/dopplershift |
|
dopplershift
| https://github.com/dopplershift |
|
| https://github.com/matplotlib/matplotlib/pull/17888/files/a490278f1127410ede1a4b5495f213be80749f76 |
|
v3.4.0
| https://github.com/matplotlib/matplotlib/milestone/53 |
|
Colormaps should have a _repr_html_ that is an image of the colormap
| https://github.com/matplotlib/matplotlib/issues/15616 |
| Please reload this page | https://github.com/matplotlib/matplotlib/pull/17888 |
|
| https://github.com/bdice |
|
| https://github.com/dopplershift |
|
| https://github.com/QuLogic |
|
| https://github.com/jklymak |
|
| https://github.com/tacaswell |
|
| https://github.com/michaelosthege |
|
| https://github.com/timhoffm |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |