Title: Figures not correctly displaying grid lines for minor ticks · Issue #16339 · matplotlib/matplotlib · GitHub
Open Graph Title: Figures not correctly displaying grid lines for minor ticks · Issue #16339 · matplotlib/matplotlib
X Title: Figures not correctly displaying grid lines for minor ticks · Issue #16339 · matplotlib/matplotlib
Description: Bug report Bug summary Figures not correctly showing grid for minor ticks on one axis. Code for reproduction x = np.arange(0,100,.5) y = 2*x**3 plt.loglog(x,y) plt.minorticks_on() plt.grid(True,which="both", axis="both",ls="-") plt.show(...
Open Graph Description: Bug report Bug summary Figures not correctly showing grid for minor ticks on one axis. Code for reproduction x = np.arange(0,100,.5) y = 2*x**3 plt.loglog(x,y) plt.minorticks_on() plt.grid(True,whi...
X Description: Bug report Bug summary Figures not correctly showing grid for minor ticks on one axis. Code for reproduction x = np.arange(0,100,.5) y = 2*x**3 plt.loglog(x,y) plt.minorticks_on() plt.grid(True,whi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16339
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Figures not correctly displaying grid lines for minor ticks","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\nFigures not correctly showing grid for minor ticks on one axis. \r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\nx = np.arange(0,100,.5)\r\ny = 2*x**3\r\n\r\nplt.loglog(x,y)\r\nplt.minorticks_on()\r\nplt.grid(True,which=\"both\", axis=\"both\",ls=\"-\")\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n**Expected outcome**\r\nThe Y axis should have minor ticks and their corresponding grid lines.\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: ArchLinux (5.4.6-arch3-1)\r\n * Matplotlib version: 3.1.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): agg\r\n * Python version: 3.8.1\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\nInstalled via pip\r\n\r\n","author":{"url":"https://github.com/paulangton","@type":"Person","name":"paulangton"},"datePublished":"2020-01-26T22:00:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/16339/matplotlib/issues/16339"}
| 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:4a930ea9-e546-e9ed-027a-a3507db2d720 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 985C:34F7A0:21EB37B:2D633F3:6A546CE6 |
| html-safe-nonce | b5529f2d1c93b3c85976cd549efbccc7d6c29d11cca6b29ccc57d648ae016207 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODVDOjM0RjdBMDoyMUVCMzdCOjJENjMzRjM6NkE1NDZDRTYiLCJ2aXNpdG9yX2lkIjoiNzg3ODI0Njc2MTgwNjE5NTk0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | af1dbc2cb4a8578749e8aa2811ebc44e7b3b250002ec2317c0d5aa6c782b15c5 |
| hovercard-subject-tag | issue:555294359 |
| 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/16339/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8312b5c724cb61e9ebde9fc45e965726a663c695910f771e57a1d74cd66ee885/matplotlib/matplotlib/issues/16339 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8312b5c724cb61e9ebde9fc45e965726a663c695910f771e57a1d74cd66ee885/matplotlib/matplotlib/issues/16339 |
| og:image:alt | Bug report Bug summary Figures not correctly showing grid for minor ticks on one axis. Code for reproduction x = np.arange(0,100,.5) y = 2*x**3 plt.loglog(x,y) plt.minorticks_on() plt.grid(True,whi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paulangton |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width