Title: bug: wrong xticklabels with log scale dualx · Issue #460 · proplot-dev/proplot · GitHub
Open Graph Title: bug: wrong xticklabels with log scale dualx · Issue #460 · proplot-dev/proplot
X Title: bug: wrong xticklabels with log scale dualx · Issue #460 · proplot-dev/proplot
Description: Description dualx seems to have an issue handling log scale axis. Steps to reproduce import numpy as np import proplot as pplt x = np.logspace(-1, 1, 100) fig, ax = pplt.subplots() ax.semilogx(x, np.sin(x)) ax.dualx(lambda x: 1/x) The to...
Open Graph Description: Description dualx seems to have an issue handling log scale axis. Steps to reproduce import numpy as np import proplot as pplt x = np.logspace(-1, 1, 100) fig, ax = pplt.subplots() ax.semilogx(x, n...
X Description: Description dualx seems to have an issue handling log scale axis. Steps to reproduce import numpy as np import proplot as pplt x = np.logspace(-1, 1, 100) fig, ax = pplt.subplots() ax.semilogx(x, n...
Opengraph URL: https://github.com/proplot-dev/proplot/issues/460
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: wrong xticklabels with log scale dualx","articleBody":"### Description\r\n\r\n`dualx` seems to have an issue handling log scale axis.\r\n\r\n### Steps to reproduce\r\n\r\n```python\r\nimport numpy as np\r\nimport proplot as pplt\r\n\r\nx = np.logspace(-1, 1, 100)\r\n\r\nfig, ax = pplt.subplots()\r\nax.semilogx(x, np.sin(x))\r\nax.dualx(lambda x: 1/x)\r\n```\r\nThe top tick labels are a mess.\r\n\r\n\r\n### Equivalent steps in matplotlib\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nx = np.linspace(0.1, 10, 1000)\r\nfig, ax = plt.subplots()\r\nax.semilogx(x, np.sin(x))\r\nax.grid()\r\nax.secondary_xaxis('top', functions=(lambda x: 1/x, lambda x: 1/x))\r\n```\r\n\r\n\r\n### Proplot version\r\n3.4.3\r\n0.9.7","author":{"url":"https://github.com/kinyatoride","@type":"Person","name":"kinyatoride"},"datePublished":"2024-07-31T20:35:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/460/proplot/issues/460"}
| 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:3cfdca82-a831-57dc-5f76-f7532e06fc5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE7E:3F9C45:BCB144:10DC181:697A29B6 |
| html-safe-nonce | 65912449f47bbc9cb7c876d7906740249f705ac0f01338b15e7fae3a1b7cbc41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTdFOjNGOUM0NTpCQ0IxNDQ6MTBEQzE4MTo2OTdBMjlCNiIsInZpc2l0b3JfaWQiOiIyOTI1NTk3MDEyMTU1NTc0NzEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 276f5fcad5a7a0ed97364819381b98570674cf856b70943c140f0daf63f64dc8 |
| hovercard-subject-tag | issue:2440901460 |
| 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/proplot-dev/proplot/460/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf1d80205fdd802d34e89c80fdfc9e5c23ac3f34b7c6c7a1b1fdf6b61d2866cc/proplot-dev/proplot/issues/460 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf1d80205fdd802d34e89c80fdfc9e5c23ac3f34b7c6c7a1b1fdf6b61d2866cc/proplot-dev/proplot/issues/460 |
| og:image:alt | Description dualx seems to have an issue handling log scale axis. Steps to reproduce import numpy as np import proplot as pplt x = np.logspace(-1, 1, 100) fig, ax = pplt.subplots() ax.semilogx(x, n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kinyatoride |
| hostname | github.com |
| expected-hostname | github.com |
| None | e45f4a1aa1d2f5e476694a8ca3079eb927f0ea276035a2d5e78665f09121ff98 |
| turbo-cache-control | no-preview |
| go-import | github.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git |
| octolytics-dimension-user_id | 108025793 |
| octolytics-dimension-user_login | proplot-dev |
| octolytics-dimension-repository_id | 113293661 |
| octolytics-dimension-repository_nwo | proplot-dev/proplot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113293661 |
| octolytics-dimension-repository_network_root_nwo | proplot-dev/proplot |
| 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 | 8a5f67754bd81296f454ff3fa910631e09e4052c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width