René's URL Explorer Experiment


Title: Enhancement Request: grid below and ticks above · Issue #4243 · matplotlib/matplotlib · GitHub

Open Graph Title: Enhancement Request: grid below and ticks above · Issue #4243 · matplotlib/matplotlib

X Title: Enhancement Request: grid below and ticks above · Issue #4243 · matplotlib/matplotlib

Description: Hi matplotlib developers, Currently, it is not possible to have the gridlines drawn below plotlines and simultaneously have ticks drawn above plotlines. With the set_axisbelow method, the gridlines and ticks are both set either above or ...

Open Graph Description: Hi matplotlib developers, Currently, it is not possible to have the gridlines drawn below plotlines and simultaneously have ticks drawn above plotlines. With the set_axisbelow method, the gridlines...

X Description: Hi matplotlib developers, Currently, it is not possible to have the gridlines drawn below plotlines and simultaneously have ticks drawn above plotlines. With the set_axisbelow method, the gridlines...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enhancement Request: grid below and ticks above","articleBody":"Hi matplotlib developers,\n\nCurrently, it is not possible to have the gridlines drawn below plotlines and simultaneously have ticks drawn above plotlines.  With the `set_axisbelow` method, the gridlines and ticks are both set either above or below any plotlines.  Here is a minimal working example:\n\n``` python\nimport numpy as np\nimport matplotlib as mpl\nimport matplotlib.pyplot as plt\n\nmpl.rcParams.update({\n'font.size':16,\n'axes.linewidth':6,\n'xtick.major.width':4,\n'ytick.major.width':4,\n'xtick.major.size':13,\n'ytick.major.size':13,\n'grid.linewidth':4,\n'grid.color':'0.8',\n})\n\nx = np.log(np.linspace(1e-3,1e+3,1e+3))\n\nplt.figure()\n\nax1 = plt.subplot(211)\nax1.plot(x,lw=10)\nax1.set_xlim(-10,1000)\nax1.set_ylim(-8,6.8)\nax1.grid()\nax1.set_axisbelow(False)\n\nax2 = plt.subplot(212)\nax2.plot(x,lw=10)\nax2.set_xlim(-10,1000)\nax2.set_ylim(-8,6.8)\nax2.grid()\nax2.set_axisbelow(True)\n\nplt.show()\n```\n\n![grid_below](https://cloud.githubusercontent.com/assets/8595627/6711462/a89f590c-cd5d-11e4-8f46-b6de7dbef7b8.png)\n\nIn the example above, in the top subplot, the `set_axisbelow(False)` method makes the gridlines above the plotline; while in the bottom subplot, the `set_axisbelow(True)` method makes the plotline above the ticks.  This is unfortunate because, in my typical use case, I never want the gridlines above the data and I never want the ticks below the data, so I have to \"simulate\" a fake grid by drawing individual lines with `axvline` and `axhline`.  This missing functionality was noticed at stackoverflow \nhttp://stackoverflow.com/questions/19677963/matplotlib-keep-grid-lines-behind-the-graph-but-the-y-and-x-axis-above\na while ago, where it was called a \"feature\" by @tacaswell , so I am requesting a new functionality that would allow the gridlines to be set below all other artists without affecting the axis spines or ticks.  Perhaps a new axes method named `set_gridbelow` would do the trick, or an optional kwarg to `set_axisbelow`.\n\nIn any case, I can't believe that I am the only person who wants this functionality to be built-in, so I hope that you consider adding this enhancement.  Thanks.\n","author":{"url":"https://github.com/u55","@type":"Person","name":"u55"},"datePublished":"2015-03-18T15:21:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/4243/matplotlib/issues/4243"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5701fcf4-db29-2250-a57e-16ac294e438c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA6B2:2A1560:CAFD34:114263B:6A555C2A
html-safe-noncec7223b5ef696e0d9a93fbf809efca8bf41ad955e25cf906d57a09bc00e860cd8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkIyOjJBMTU2MDpDQUZEMzQ6MTE0MjYzQjo2QTU1NUMyQSIsInZpc2l0b3JfaWQiOiI2MjQ4NDE1MTgxMDI4MDIzMzM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbe88fc6c39f663a7490b8dbadc036bc72b0ac226ebcabe6bcd8c003098519c06
hovercard-subject-tagissue:62720127
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/4243/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2d6f4be140e0b0dd3ef76dbfa246bdc02f47bb9354579224c55e538aac7405b1/matplotlib/matplotlib/issues/4243
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2d6f4be140e0b0dd3ef76dbfa246bdc02f47bb9354579224c55e538aac7405b1/matplotlib/matplotlib/issues/4243
og:image:altHi matplotlib developers, Currently, it is not possible to have the gridlines drawn below plotlines and simultaneously have ticks drawn above plotlines. With the set_axisbelow method, the gridlines...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameu55
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
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
release73595e82546ca2415571a2031890ab16ecb3001a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/4243#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F4243
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%2F4243
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/4243
Reloadhttps://github.com/matplotlib/matplotlib/issues/4243
Reloadhttps://github.com/matplotlib/matplotlib/issues/4243
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/4243
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/4243
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
Enhancement Request: grid below and ticks abovehttps://github.com/matplotlib/matplotlib/issues/4243#top
New featurehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22New%20feature%22
keepItems to be ignored by the “Stale” Github Actionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22keep%22
future releaseshttps://github.com/matplotlib/matplotlib/milestone/25
https://github.com/u55
u55https://github.com/u55
on Mar 18, 2015https://github.com/matplotlib/matplotlib/issues/4243#issue-62720127
https://cloud.githubusercontent.com/assets/8595627/6711462/a89f590c-cd5d-11e4-8f46-b6de7dbef7b8.png
http://stackoverflow.com/questions/19677963/matplotlib-keep-grid-lines-behind-the-graph-but-the-y-and-x-axis-abovehttp://stackoverflow.com/questions/19677963/matplotlib-keep-grid-lines-behind-the-graph-but-the-y-and-x-axis-above
@tacaswellhttps://github.com/tacaswell
New featurehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22New%20feature%22
keepItems to be ignored by the “Stale” Github Actionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22keep%22
future releasesNo due datehttps://github.com/matplotlib/matplotlib/milestone/25
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.