Title: `zorder=None` not properly handled · Issue #9785 · matplotlib/matplotlib · GitHub
Open Graph Title: `zorder=None` not properly handled · Issue #9785 · matplotlib/matplotlib
X Title: `zorder=None` not properly handled · Issue #9785 · matplotlib/matplotlib
Description: Matplotlib developers: I have some feature requests and/or questions about the grid behaviors in matplotlib v2.0+: (1) Is it possible to set the default grid line to even lighter gray, and even thinner line width? Just like the style in ...
Open Graph Description: Matplotlib developers: I have some feature requests and/or questions about the grid behaviors in matplotlib v2.0+: (1) Is it possible to set the default grid line to even lighter gray, and even thi...
X Description: Matplotlib developers: I have some feature requests and/or questions about the grid behaviors in matplotlib v2.0+: (1) Is it possible to set the default grid line to even lighter gray, and even thi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9785
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" `zorder=None` not properly handled","articleBody":"Matplotlib developers:\r\n\r\nI have some feature requests and/or questions about the grid behaviors in matplotlib v2.0+:\r\n\r\n(1) Is it possible to set the default grid line to even lighter gray, and even thinner line width? Just like the style in MATLAB? The current new Matplotlib defaults generate grid lines that look too pronounced.\r\n\r\nIn fact, when using Matplotlib 2.0+, I always use `plt.grid(ls=':')` instead of just `plt.grid()`. It looks much better.\r\n\r\n(2) The `zorder` behavior, if set to None, is undefined, or at least not documented clearly.\r\n\r\nFor example, I tried the following codes respectively:\r\n\r\n`plt.figure(); plt.plot([0,1],[0,1],lw=10); plt.grid()`\r\n`plt.figure(); plt.plot([0,1],[0,1],lw=10,zorder=None); plt.grid()`\r\n`plt.figure(); plt.plot([0,1],[0,1],lw=10); plt.grid(zorder=None)`\r\n`plt.figure(); plt.plot([0,1],[0,1],lw=10,zorder=None); plt.grid(zorder=None)`\r\n\r\nand I am getting confusing results.\r\n\r\nThere is indeed some needs to pass `None` to `zorder`, especially when designing wrapper functions where `zorder` sometimes needs to be specified by the user, and sometimes doesn't.","author":{"url":"https://github.com/jsh9","@type":"Person","name":"jsh9"},"datePublished":"2017-11-14T22:49:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/9785/matplotlib/issues/9785"}
| 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:96238264-6b1c-a24f-743e-d90d9b43becd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E414:DFA78:33298C:45B1A7:6A5593D1 |
| html-safe-nonce | 79d3f5898ae42756831ae6dbec941567272e65c50783ac6de9cac73afa4f6e26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDE0OkRGQTc4OjMzMjk4Qzo0NUIxQTc6NkE1NTkzRDEiLCJ2aXNpdG9yX2lkIjoiOTcwMTQ3NTM2NzI3MDIwNDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 35e96b553d676d1bbbc58939eb6b18163d990afa169c5b4e335c326150fd9f53 |
| hovercard-subject-tag | issue:273971960 |
| 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/9785/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bec578d4080dcda76f75357b3ca24fb6a472c5ec43c606de73de3236596b94cd/matplotlib/matplotlib/issues/9785 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bec578d4080dcda76f75357b3ca24fb6a472c5ec43c606de73de3236596b94cd/matplotlib/matplotlib/issues/9785 |
| og:image:alt | Matplotlib developers: I have some feature requests and/or questions about the grid behaviors in matplotlib v2.0+: (1) Is it possible to set the default grid line to even lighter gray, and even thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jsh9 |
| 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 | aa21baa44893467b0b640d0300538f84ca8c475b |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width