Title: Plotting on a log/logit scale overwrites axis inverting · Issue #14620 · matplotlib/matplotlib · GitHub
Open Graph Title: Plotting on a log/logit scale overwrites axis inverting · Issue #14620 · matplotlib/matplotlib
X Title: Plotting on a log/logit scale overwrites axis inverting · Issue #14620 · matplotlib/matplotlib
Description: Bug report Bug summary When plotting on a log axis that has been inverted, the inverting is overwritten. This happens for "log" and "logit" scales but not for "linear" or "symlog", which both work as expected. Code for reproduction impor...
Open Graph Description: Bug report Bug summary When plotting on a log axis that has been inverted, the inverting is overwritten. This happens for "log" and "logit" scales but not for "linear" or "symlog", which both work ...
X Description: Bug report Bug summary When plotting on a log axis that has been inverted, the inverting is overwritten. This happens for "log" and "logit" scales but not for "linear"...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14620
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plotting on a log/logit scale overwrites axis inverting","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nWhen plotting on a log axis that has been inverted, the inverting is overwritten.\r\n\r\nThis happens for ``\"log\"`` and ``\"logit\"`` scales but not for ``\"linear\"`` or ``\"symlog\"``, which both work as expected.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\n\r\nfig, ax = plt.subplots()\r\nax.set_yscale('log') # or 'logit'\r\nax.yaxis.set_inverted(True)\r\n\r\nprint(ax.yaxis.get_inverted())\r\nax.plot(range(50), range(50))\r\nprint(ax.yaxis.get_inverted())\r\n```\r\n\r\n**Actual outcome**\r\n\r\n```\r\nTrue\r\nFalse\r\n# and the plot is **not** inverted\r\n```\r\n\r\n\r\n**Expected outcome**\r\n\r\n```\r\nTrue\r\nTrue\r\n# and an inverted plot\r\n```\r\n\r\n**Matplotlib version**\r\n * Operating system: Linux and MacOS\r\n * Matplotlib version: 3.1.0\r\n * Python version: 3.7.3\r\n\r\nPython and matplotlib have been installed using conda.","author":{"url":"https://github.com/lkluft","@type":"Person","name":"lkluft"},"datePublished":"2019-06-25T13:09:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/14620/matplotlib/issues/14620"}
| 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:61521813-8c0f-7b82-d65c-8233787ce206 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9600:F3BC0:1624BDB:200813F:6A54CF78 |
| html-safe-nonce | 4d6f6f36ab01d5880c4d147b2d4501eb6001a8d223238712d1baf052d88830bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjAwOkYzQkMwOjE2MjRCREI6MjAwODEzRjo2QTU0Q0Y3OCIsInZpc2l0b3JfaWQiOiI5MDg2NDg1NDA1MDc2MDgyNTUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2a416c3c69d16a5d5e0117d04f1f13797db5bd3edb74346e1220ce2e6af1c8ca |
| hovercard-subject-tag | issue:460414924 |
| 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/14620/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98e61448e6b878479f9afc8a1f6cb5404b06c508028f9d8e0e0c56f26713270b/matplotlib/matplotlib/issues/14620 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98e61448e6b878479f9afc8a1f6cb5404b06c508028f9d8e0e0c56f26713270b/matplotlib/matplotlib/issues/14620 |
| og:image:alt | Bug report Bug summary When plotting on a log axis that has been inverted, the inverting is overwritten. This happens for "log" and "logit" scales but not for "linear" or "symlog", which both work ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lkluft |
| hostname | github.com |
| expected-hostname | github.com |
| None | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| 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 | 840b5d20d5a883c23cf56f5240b2c343d6cc0867 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width