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: github.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:b9561ba3-c56b-1807-f471-569bae979497 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E396:139CD4:49E470:6207DC:696B3F92 |
| html-safe-nonce | c27fda2f7ba511feffd0bf2448c325747110293b4fbe7c5f990eb4b544d127bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzk2OjEzOUNENDo0OUU0NzA6NjIwN0RDOjY5NkIzRjkyIiwidmlzaXRvcl9pZCI6IjQ1NTEzNTM1Mzk1ODUxNDU3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1297396f102ddc0f73c40e97a6064fdb4d1b4facd59780b3113135682c0359bc |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width