René's URL Explorer Experiment


Title: Issue · GitHub

Open Graph Title: Issue · matplotlib/matplotlib

X Title: Issue · matplotlib/matplotlib

Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

Open Graph Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

X Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Horizontal colorbars drawn incorrectly with hatches","articleBody":"### Bug summary\n\nWhen specifying hatches for `contourf,` the colorbar is drawn correctly for vertical colorbars but not for horizontal ones. The Hatches and colorfill only fill the lower diagonal of the colorbar boxes.\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\n# invent some numbers, turning the x and y arrays into simple\r\n# 2d arrays, which make combining them together easier.\r\nx = np.linspace(-3, 5, 150).reshape(1, -1)\r\ny = np.linspace(-3, 5, 120).reshape(-1, 1)\r\nz = np.cos(x) + np.sin(y)\r\n\r\n# we no longer need x and y to be 2 dimensional, so flatten them.\r\nx, y = x.flatten(), y.flatten()\r\n\r\nfig1, ax1 = plt.subplots()\r\ncs = ax1.contourf(x, y, z, hatches=['-', '/', '\\\\', '//'],\r\n                  cmap='gray', extend='both', alpha=0.5)\r\n\r\nfig1.colorbar(cs, orientation='horizontal')\r\nplt.show()\n```\n\n\n### Actual outcome\n\n![actual_colobar](https://user-images.githubusercontent.com/42781301/180038311-1100fca9-bbaa-4baa-93fb-97ccc56d8260.png)\r\n\n\n### Expected outcome\n\n![expected_colorbar](https://user-images.githubusercontent.com/42781301/180038758-eb0177ff-52c8-49cf-9fd4-d927fc4170b6.png)\r\n\n\n### Additional information\n\nThe bug occurs when the colorbar is horizontal and the `contourf` call uses hatches. Changing the kwargs `extend`, `cmap`, `colors`, `alpha`, etc when calling `contourf` does *not* resolve the bug. \r\n\r\nThe bug does *not* occur when the colorbar is vertical with hatches nor when the colorbar is horizontal and no hatches are used.\r\n\r\n*Potential Solution*:\r\nIn colorbar.py, change line 637 to the following:\r\n`xy = np.array([[X[i, 0], Y[i, 1]],`\r\n\r\nThis doesn't cause issues when hatches are not used. It also doesn't cause problems with vertical colorbars.\n\n### Operating system\n\nmacOS Big Sur Version 11.3.1 with Intel Silicon\n\n### Matplotlib Version\n\n3.5.2\n\n### Matplotlib Backend\n\nmodule://backend_interagg\n\n### Python version\n\n3.10.5\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nconda","author":{"url":"https://github.com/hCraker","@type":"Person","name":"hCraker"},"datePublished":"2022-07-20T20:41:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/23456/matplotlib/issues/23456"}

route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:7c778541-de2c-4d37-3f8d-cfe516aaddd1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE010:1F16:6BAD204:99217D3:6A51050B
html-safe-nonce45c8a681d7164e7cb8bea61466406e5e5e9cf366fcbce60dcb15fd049c0c184f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDEwOjFGMTY6NkJBRDIwNDo5OTIxN0QzOjZBNTEwNTBCIiwidmlzaXRvcl9pZCI6IjYzMjk3MjIwNjg3NDE5ODE0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace6f99ea78a602a824c38ccee0e5ecc406d59455032f79e41584108ce26a7fe01
hovercard-subject-tagrepository:1385122
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/issues/23456
twitter:imagehttps://opengraph.githubassets.com/71df57b45279fb48f14f38101838216990f40b6e663ac9ba1a234f023245d9b5/matplotlib/matplotlib
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71df57b45279fb48f14f38101838216990f40b6e663ac9ba1a234f023245d9b5/matplotlib/matplotlib
og:image:altmatplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12
turbo-cache-controlno-cache
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
release90441ea9b98e7491aa6ebcd135fccce4e2396f48
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/23456#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F23456
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%2F23456
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%2Fissues%2Fshow&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/23456
Reloadhttps://github.com/matplotlib/matplotlib/issues/23456
Reloadhttps://github.com/matplotlib/matplotlib/issues/23456
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/23456
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/23456
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 410 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
#23684https://github.com/matplotlib/matplotlib/pull/23684
[Bug]: Horizontal colorbars drawn incorrectly with hatcheshttps://github.com/matplotlib/matplotlib/issues/23456#top
#23684https://github.com/matplotlib/matplotlib/pull/23684
status: has patchpatch suggested, PR still neededhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20has%20patch%22
topic: color/colorbarhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20color%2Fcolorbar%22
topic: hatchhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20hatch%22
v3.6.1https://github.com/matplotlib/matplotlib/milestone/73
https://github.com/hCraker
hCrakerhttps://github.com/hCraker
on Jul 20, 2022https://github.com/matplotlib/matplotlib/issues/23456#issue-1311881798
https://user-images.githubusercontent.com/42781301/180038311-1100fca9-bbaa-4baa-93fb-97ccc56d8260.png
https://user-images.githubusercontent.com/42781301/180038758-eb0177ff-52c8-49cf-9fd4-d927fc4170b6.png
status: has patchpatch suggested, PR still neededhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20has%20patch%22
topic: color/colorbarhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20color%2Fcolorbar%22
topic: hatchhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20hatch%22
v3.6.1https://github.com/matplotlib/matplotlib/milestone/73
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.