Title: [Bug]: log scale on unitized data · Issue #20979 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: log scale on unitized data · Issue #20979 · matplotlib/matplotlib
X Title: [Bug]: log scale on unitized data · Issue #20979 · matplotlib/matplotlib
Description: Bug summary Not totally sure if this is a bug, or a feature request, but for now should we maybe add a warning on trying to do log scale w/ dates & categories - i.e. non-float datatypes that the units system converts to floats but the re...
Open Graph Description: Bug summary Not totally sure if this is a bug, or a feature request, but for now should we maybe add a warning on trying to do log scale w/ dates & categories - i.e. non-float datatypes that the un...
X Description: Bug summary Not totally sure if this is a bug, or a feature request, but for now should we maybe add a warning on trying to do log scale w/ dates & categories - i.e. non-float datatypes that th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20979
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: log scale on unitized data","articleBody":"### Bug summary\r\n\r\nNot totally sure if this is a bug, or a feature request, but for now should we maybe add a warning on trying to do log scale w/ dates \u0026 categories - i.e. non-float datatypes that the units system converts to floats but the resulting figure strips out all the unit information because it does the math on the underlying floats and doesn't convert back to the units. \r\n\r\n### Code for reproduction\r\n\r\n```python\r\nfig, ax = plt.subplots()\r\nax.plot(['a','b','c'], \r\n [datetime(1999,12,1), datetime(2000,1,1), \r\n datetime(2020, 10,1)])\r\nax.set_xscale('log')\r\nax.set_yscale('log')\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n\r\n\r\n\r\n### Expected outcome\r\n\r\nprobably for the y-axis to still be labled in dates, and the x axis to be labeled in categories (which admittedly is impossible to do in this case) ","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2021-09-02T17:14:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/20979/matplotlib/issues/20979"}
| 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:0d47d8bb-f97f-3910-ddad-a11f65c98de1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5D2:1AC175:1062D44:15C17C4:6A51C3C7 |
| html-safe-nonce | 1a5cd0f45157919133e8b132efed38fa47c8ebacd73192b67e10dacf89006369 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUQyOjFBQzE3NToxMDYyRDQ0OjE1QzE3QzQ6NkE1MUMzQzciLCJ2aXNpdG9yX2lkIjoiNTM5NzU2NzMxMTk4ODI0NTQ0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | afcac58cc1b480c46e05b85d1f418856e2f56793ef23a221b584f8d4c3ae25b0 |
| hovercard-subject-tag | issue:986977894 |
| 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/20979/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3af7aa8c4b424b001e0760d710a027c38f72c004e83d23dacb9551e8fb259d12/matplotlib/matplotlib/issues/20979 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3af7aa8c4b424b001e0760d710a027c38f72c004e83d23dacb9551e8fb259d12/matplotlib/matplotlib/issues/20979 |
| og:image:alt | Bug summary Not totally sure if this is a bug, or a feature request, but for now should we maybe add a warning on trying to do log scale w/ dates & categories - i.e. non-float datatypes that the un... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | story645 |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width