Title: setting x_scale symlog distorts graph · Issue #14597 · matplotlib/matplotlib · GitHub
Open Graph Title: setting x_scale symlog distorts graph · Issue #14597 · matplotlib/matplotlib
X Title: setting x_scale symlog distorts graph · Issue #14597 · matplotlib/matplotlib
Description: Bug report EDIT: I figured out it's due to the standard set as the option 'linscalex'. Good addition would be force entry of linscalex when using symlog or throw a flag that linscalex is applied. /EDIT setting xscale to symlog produces a...
Open Graph Description: Bug report EDIT: I figured out it's due to the standard set as the option 'linscalex'. Good addition would be force entry of linscalex when using symlog or throw a flag that linscalex is applied. /...
X Description: Bug report EDIT: I figured out it's due to the standard set as the option 'linscalex'. Good addition would be force entry of linscalex when using symlog or throw a flag that linscalex i...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14597
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"setting x_scale symlog distorts graph","articleBody":"### Bug report\r\n\r\nEDIT:\r\nI figured out it's due to the standard set as the option 'linscalex'.\r\nGood addition would be force entry of linscalex when using symlog or throw a flag that linscalex is applied.\r\n/EDIT\r\n\r\nsetting xscale to symlog produces a different graph than setting it to log\r\n\r\n\r\n\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\n\r\ndef func(a):\r\n return a**2*np.exp(a)\r\nalpha=np.linspace(1,10,1000)\r\nplt.plot(alpha,1e5*func(a=alpha))\r\naxes=plt.gca()\r\naxes.set_yscale('log')\r\naxes.set_xscale('symlog')\r\nplt.xlim(1,10)\r\nplt.title('symlog')\r\nplt.show()\r\n\r\nplt.plot(alpha,1e5*func(a=alpha))\r\naxes=plt.gca()\r\naxes.set_yscale('log')\r\naxes.set_xscale('log')\r\nplt.xlim(1,10)\r\nplt.title('log')\r\n\r\nplt.show()\r\n\r\n\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nI expect this to show what I see when I plot 'log'. \r\n\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: MAC OS X, reproduced on Ubuntu 16.04, too\r\n * Matplotlib version: 3.1.0\r\n * Python version: 3.7\r\n * Jupyter version (if applicable): 5.6.8\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/pjkrauspe","@type":"Person","name":"pjkrauspe"},"datePublished":"2019-06-21T11:06:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/14597/matplotlib/issues/14597"}
| 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:2fda3cd7-4876-dc39-59c3-7c0fd211720f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A996:7C839:5E22B3:86CF58:6A589ACD |
| html-safe-nonce | 6e83b1e1b4525d22e3b1d74b8d5f7e2dcc60ba3ba903013c662cba1fbfe22aa0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTk2OjdDODM5OjVFMjJCMzo4NkNGNTg6NkE1ODlBQ0QiLCJ2aXNpdG9yX2lkIjoiNzIyNzYyOTQ2MDY1MjU5NTkxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1bb54d979ca1d391fbb3bb7b14700708bee2ffce73aaaabd7f66e1bdfa872e22 |
| hovercard-subject-tag | issue:459143339 |
| 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/14597/issue_layout |
| twitter:image | https://opengraph.githubassets.com/503c721f599dc2e4c65d01115027788b0cbd4f879c39711e4cdb3f1b4272428c/matplotlib/matplotlib/issues/14597 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/503c721f599dc2e4c65d01115027788b0cbd4f879c39711e4cdb3f1b4272428c/matplotlib/matplotlib/issues/14597 |
| og:image:alt | Bug report EDIT: I figured out it's due to the standard set as the option 'linscalex'. Good addition would be force entry of linscalex when using symlog or throw a flag that linscalex is applied. /... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pjkrauspe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width