Title: Axes.grid() not honoring specified "zorder" kwarg · Issue #5045 · matplotlib/matplotlib · GitHub
Open Graph Title: Axes.grid() not honoring specified "zorder" kwarg · Issue #5045 · matplotlib/matplotlib
X Title: Axes.grid() not honoring specified "zorder" kwarg · Issue #5045 · matplotlib/matplotlib
Description: Axes.grid() is not honoring a provided custom zorder. Instead the grid's zorder seems to be fixed at some miraculous value in between 2.5 and 2.6 (I could not find a key for grid zorder in rcParams). This can be annoying because than all...
Open Graph Description: Axes.grid() is not honoring a provided custom zorder. Instead the grid's zorder seems to be fixed at some miraculous value in between 2.5 and 2.6 (I could not find a key for grid zorder in rcParams...
X Description: Axes.grid() is not honoring a provided custom zorder. Instead the grid's zorder seems to be fixed at some miraculous value in between 2.5 and 2.6 (I could not find a key for grid zorder in rcPa...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5045
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Axes.grid() not honoring specified \"zorder\" kwarg","articleBody":"`Axes.grid()` is not honoring a provided custom `zorder`. Instead the grid's zorder seems to be fixed at some miraculous value in between `2.5` and `2.6` (I could not find a key for grid zorder in rcParams). This can be annoying because than all other artists `zorder` have to be adjusted around the grid zorder as opposed to only changing the zorder of the grid.\n\nEdit: I'm on mpl 1.4.3\n\nExample:\n\n``` python\nimport matplotlib.pyplot as plt \nax = plt.gca()\nax.grid(lw=30, ls=\"-\", zorder=-10)\nax.text(0, 0.5, \"spam\", color=\"r\", size=200, zorder=2.5)\nax.text(0, 0, \"eggs\", color=\"g\", size=200, zorder=2.6)\nplt.show()\n```\n\n\n","author":{"url":"https://github.com/megies","@type":"Person","name":"megies"},"datePublished":"2015-09-10T12:01:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/5045/matplotlib/issues/5045"}
| 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:30336d67-b541-3f94-1f21-d43b67ad28d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A93E:17AD18:E4CB81:13B3651:6A55C83C |
| html-safe-nonce | 01aeb147810504f0e27b65af36e4703688db064b7597e31531b0eb8e17ba742a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTNFOjE3QUQxODpFNENCODE6MTNCMzY1MTo2QTU1QzgzQyIsInZpc2l0b3JfaWQiOiIzNTIzOTIwNjM4MzYzNjgyODc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3c7fd42f764312ca4ef1a6ce06d76afde86a8b5f32248ebf33884ebf9be4e764 |
| hovercard-subject-tag | issue:105791997 |
| 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/5045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18a1bb279ffe4286c3825aa7644d81b65dfd467eb97be2c6318a800bbeb02a71/matplotlib/matplotlib/issues/5045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18a1bb279ffe4286c3825aa7644d81b65dfd467eb97be2c6318a800bbeb02a71/matplotlib/matplotlib/issues/5045 |
| og:image:alt | Axes.grid() is not honoring a provided custom zorder. Instead the grid's zorder seems to be fixed at some miraculous value in between 2.5 and 2.6 (I could not find a key for grid zorder in rcParams... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | megies |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 8f8e1726192df8dce16872ceb503336c12e9ae78 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width