René's URL Explorer Experiment


Title: [Bug]: Contour plot is not updating after customization made to the color bar in the generated plot. · Issue #23080 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: Contour plot is not updating after customization made to the color bar in the generated plot. · Issue #23080 · matplotlib/matplotlib

X Title: [Bug]: Contour plot is not updating after customization made to the color bar in the generated plot. · Issue #23080 · matplotlib/matplotlib

Description: Bug summary A contour plot is plotted with the minimum and maximum values of the parameter as color bar limits. Then when I try to make changes (such as limits and colormap) to the color bar from the toolbar of the generated plot it is n...

Open Graph Description: Bug summary A contour plot is plotted with the minimum and maximum values of the parameter as color bar limits. Then when I try to make changes (such as limits and colormap) to the color bar from t...

X Description: Bug summary A contour plot is plotted with the minimum and maximum values of the parameter as color bar limits. Then when I try to make changes (such as limits and colormap) to the color bar from t...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/23080

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Contour plot is not updating after customization made to the color bar in the generated plot.","articleBody":"### Bug summary\n\nA contour plot is plotted with the minimum and maximum values of the parameter as color bar limits. Then when I try to make changes (such as limits and colormap) to the color bar from the toolbar of the generated plot it is not updating accordingly.  \r\n![1 Generated_plot](https://user-images.githubusercontent.com/40228243/169468987-f714688e-70c4-44a4-9280-251e4ba92f98.PNG)\r\n1. A sample plot. \r\n![2 Customizing_Colorbar](https://user-images.githubusercontent.com/40228243/169468991-ec1adc97-0a82-4f78-990e-3c7c847feeb8.PNG)\r\n2. Customizing the color bar. \r\n![3 Colorbar_options](https://user-images.githubusercontent.com/40228243/169468993-cf83c5fa-8fc1-40f9-9b6f-77085ce3cad5.PNG)\r\n3. Options for changing the color bar. \r\n![4 Colorbar_Changes_Not_reflected](https://user-images.githubusercontent.com/40228243/169468998-8cf9ca16-a1f0-48eb-b399-9c2ef80252f1.PNG)\r\n4. The changes are reflected in the color bar, but not in the plot. \r\nKindly suggest how I can update the plot according to the changes made in the color bar options.\n\n### Code for reproduction\n\n```python\n# A sample code.\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\norigin = 'lower'\r\n\r\ndelta = 0.025\r\n\r\nx = y = np.arange(-3.0, 3.01, delta)\r\nX, Y = np.meshgrid(x, y)\r\nZ1 = np.exp(-X**2 - Y**2)\r\nZ2 = np.exp(-(X - 1)**2 - (Y - 1)**2)\r\nZ = (Z1 - Z2) * 2\r\n\r\nnr, nc = Z.shape\r\n\r\n# put NaNs in one corner:\r\nZ[-nr // 6:, -nc // 6:] = np.nan\r\n# contourf will convert these to masked\r\n\r\n\r\nZ = np.ma.array(Z)\r\n# mask another corner:\r\nZ[:nr // 6, :nc // 6] = np.ma.masked\r\n\r\n# mask a circle in the middle:\r\ninterior = np.sqrt(X**2 + Y**2) \u003c 0.5\r\nZ[interior] = np.ma.masked\r\n\r\nfig1, ax2 = plt.subplots(constrained_layout=True)\r\nCS = ax2.contourf(X, Y, Z, 10, cmap=plt.cm.bone, origin=origin)\r\n\r\n# Note that in the following, we explicitly pass in a subset of the contour\r\n# levels used for the filled contours.  Alternatively, we could pass in\r\n# additional levels to provide extra resolution, or leave out the *levels*\r\n# keyword argument to use all of the original levels.\r\n\r\nCS2 = ax2.contour(CS, levels=CS.levels[::2], colors='r', origin=origin)\r\n\r\nax2.set_title('Nonsense (3 masked regions)')\r\nax2.set_xlabel('word length anomaly')\r\nax2.set_ylabel('sentence length anomaly')\r\n\r\n# Make a colorbar for the ContourSet returned by the contourf call.\r\ncbar = fig1.colorbar(CS)\r\ncbar.ax.set_ylabel('verbosity coefficient')\r\n# Add the contour line levels to the colorbar\r\ncbar.add_lines(CS2)\r\nplt.show()\n```\n\n\n### Actual outcome\n\n![1 Generated_plot](https://user-images.githubusercontent.com/40228243/169469852-69156ff9-fa76-41e5-b270-680cc3d65d93.PNG)\r\n\n\n### Expected outcome\n\n![5  Required_Plot](https://user-images.githubusercontent.com/40228243/169470613-e9846173-2928-4cd1-8d18-8de77d3671fe.png)\r\n\r\nThe following changes have been made to the code in order to get the expected plot.\r\n`lev = np.linspace(-0.5, 0.5, 10)`\r\n`CS = ax2.contourf(X, Y, Z, 10, cmap=plt.cm.rainbow, origin=origin, levels=lev)`\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nWindows\n\n### Matplotlib Version\n\n3.4.3\n\n### Matplotlib Backend\n\nQt5Agg\n\n### Python version\n\nPython 3.8.12\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/JishnuJeevan","@type":"Person","name":"JishnuJeevan"},"datePublished":"2022-05-20T06:57:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/23080/matplotlib/issues/23080"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e09cb477-586c-a3ca-bd30-0e0dcb5b265c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA1D4:9B0A:9F9EB1:E8FDC7:6A56026C
html-safe-nonce7eed6f76a99608e8276cdb201947fd4dbcb4a7ba33f3382fc35356f797cdba43
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUQ0OjlCMEE6OUY5RUIxOkU4RkRDNzo2QTU2MDI2QyIsInZpc2l0b3JfaWQiOiIzMDg5MTM4MzAyOTY1OTA4MDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac71bdce9c1f252af003610ba1f4e91ee52925a77492c6b836196426f8902c2ed6
hovercard-subject-tagissue:1242713017
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/23080/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0988a93b153c4e8e128136d6726ea6f04ec3472c33a842636c618a180d5b4eeb/matplotlib/matplotlib/issues/23080
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0988a93b153c4e8e128136d6726ea6f04ec3472c33a842636c618a180d5b4eeb/matplotlib/matplotlib/issues/23080
og:image:altBug summary A contour plot is plotted with the minimum and maximum values of the parameter as color bar limits. Then when I try to make changes (such as limits and colormap) to the color bar from t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJishnuJeevan
hostnamegithub.com
expected-hostnamegithub.com
Nonef4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseed27e29ef37c0e8f612ea3fed8118b955b8314e2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/23080#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F23080
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fissues%2F23080
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/23080
Reloadhttps://github.com/matplotlib/matplotlib/issues/23080
Reloadhttps://github.com/matplotlib/matplotlib/issues/23080
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/23080
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/23080
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
[Bug]: Contour plot is not updating after customization made to the color bar in the generated plot.https://github.com/matplotlib/matplotlib/issues/23080#top
topic: contourhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20contour%22
https://github.com/JishnuJeevan
JishnuJeevanhttps://github.com/JishnuJeevan
on May 20, 2022https://github.com/matplotlib/matplotlib/issues/23080#issue-1242713017
https://user-images.githubusercontent.com/40228243/169468987-f714688e-70c4-44a4-9280-251e4ba92f98.PNG
https://user-images.githubusercontent.com/40228243/169468991-ec1adc97-0a82-4f78-990e-3c7c847feeb8.PNG
https://user-images.githubusercontent.com/40228243/169468993-cf83c5fa-8fc1-40f9-9b6f-77085ce3cad5.PNG
https://user-images.githubusercontent.com/40228243/169468998-8cf9ca16-a1f0-48eb-b399-9c2ef80252f1.PNG
https://user-images.githubusercontent.com/40228243/169469852-69156ff9-fa76-41e5-b270-680cc3d65d93.PNG
https://user-images.githubusercontent.com/40228243/169470613-e9846173-2928-4cd1-8d18-8de77d3671fe.png
topic: contourhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20contour%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.