Title: symlog + minor ticks = exception · Issue #6967 · matplotlib/matplotlib · GitHub
Open Graph Title: symlog + minor ticks = exception · Issue #6967 · matplotlib/matplotlib
X Title: symlog + minor ticks = exception · Issue #6967 · matplotlib/matplotlib
Description: Present in 1.5.1 and on 2.0.0b3, as well as master I think. Enabling minor ticks via minorticks_on and having scale set to symlog raises an exception. In minorticks_on, the input passed to SymmetricalLogLocator is base and subs, but Symm...
Open Graph Description: Present in 1.5.1 and on 2.0.0b3, as well as master I think. Enabling minor ticks via minorticks_on and having scale set to symlog raises an exception. In minorticks_on, the input passed to Symmetri...
X Description: Present in 1.5.1 and on 2.0.0b3, as well as master I think. Enabling minor ticks via minorticks_on and having scale set to symlog raises an exception. In minorticks_on, the input passed to Symmetri...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6967
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"symlog + minor ticks = exception","articleBody":"Present in 1.5.1 and on 2.0.0b3, as well as master I think.\n\nEnabling minor ticks via `minorticks_on` and having scale set to symlog raises an exception. In `minorticks_on`, the input passed to SymmetricalLogLocator is base and subs, but SymmetricalLogLocator is expecting transform and subs. Calling self._transform.base, when self._transform is a base (a float) causes exception,\n\n\u003e ...\n\u003e File \"C:\\Python27_numpy\\lib\\site-packages\\matplotlib\\axis.py\", line 900, in iter_ticks\n\u003e minorLocs = self.minor.locator()\n\u003e File \"C:\\Python27_numpy\\lib\\site-packages\\matplotlib\\ticker.py\", line 1662, in **call**\n\u003e return self.tick_values(vmin, vmax)\n\u003e File \"C:\\Python27_numpy\\lib\\site-packages\\matplotlib\\ticker.py\", line 1665, in tick_values\n\u003e b = self._transform.base\n\u003e AttributeError: 'float' object has no attribute 'base'\n\nMinimum code to reproduce,\n\n```\nimport matplotlib.pyplot as plt\n\nplt.plot([1,2,3,4])\n\nax = plt.gca()\nax.set_xscale('symlog')\nax.set_yscale('symlog')\nax.minorticks_on()\n\nplt.show()\n```\n","author":{"url":"https://github.com/LevN0","@type":"Person","name":"LevN0"},"datePublished":"2016-08-23T19:09:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/6967/matplotlib/issues/6967"}
| 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:5f8622af-b85c-5382-3ca4-804c6be25da0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E19E:2DCEA7:5B8082:78BA63:6A530322 |
| html-safe-nonce | 16e9858ba982921abdcbdb0496ce7d98c5885902ede332a854f05466aeb84acc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTlFOjJEQ0VBNzo1QjgwODI6NzhCQTYzOjZBNTMwMzIyIiwidmlzaXRvcl9pZCI6IjU1MjYwMDMwNjA1MjUxNzE0OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b794c45136c11114c213244f6113ceeb5d2d1ce2776e1f81b3add8b669468b72 |
| hovercard-subject-tag | issue:172781511 |
| 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/6967/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6638ed0b2210b6b9c03ae7aea2816eefb7e2cc50afece039737264a75b01d4a3/matplotlib/matplotlib/issues/6967 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6638ed0b2210b6b9c03ae7aea2816eefb7e2cc50afece039737264a75b01d4a3/matplotlib/matplotlib/issues/6967 |
| og:image:alt | Present in 1.5.1 and on 2.0.0b3, as well as master I think. Enabling minor ticks via minorticks_on and having scale set to symlog raises an exception. In minorticks_on, the input passed to Symmetri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LevN0 |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width