Title: Default date format for axis formatting · Issue #5086 · matplotlib/matplotlib · GitHub
Open Graph Title: Default date format for axis formatting · Issue #5086 · matplotlib/matplotlib
X Title: Default date format for axis formatting · Issue #5086 · matplotlib/matplotlib
Description: Some months ago I put a question on stackoverflow. http://stackoverflow.com/questions/30026790/editing-default-date-format When you are overhauling defaults for 2.0 - is there any considerations for changed date defaults or rc-params usi...
Open Graph Description: Some months ago I put a question on stackoverflow. http://stackoverflow.com/questions/30026790/editing-default-date-format When you are overhauling defaults for 2.0 - is there any considerations fo...
X Description: Some months ago I put a question on stackoverflow. http://stackoverflow.com/questions/30026790/editing-default-date-format When you are overhauling defaults for 2.0 - is there any considerations fo...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5086
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default date format for axis formatting","articleBody":"Some months ago I put a question on stackoverflow.\nhttp://stackoverflow.com/questions/30026790/editing-default-date-format\n\nWhen you are overhauling defaults for 2.0 - is there any considerations for changed date defaults or rc-params using locals or ISO style?\n\nI read about (not really) related topics here:\nhttps://github.com/matplotlib/matplotlib/issues/4808\nhttps://github.com/matplotlib/matplotlib/pull/4809\n\nAs stated at stackoverflow editing the files didn't work as aspected.\nIf it is not in scope of your work some help at stackoverflow would be nice.\n\nText at stackoverflow:\nlocale is \"none\"; resulting in \"american style\" dates (Apr 25 2015) instead of iso style (YYYY-MM-DD)\nOn smaller scales (days or lower), I need to get date information printed to some where (thought of secound and secound to last ticks): This one should be easy when the above is working...\nSolution 1: Adjusting the dates in every single plot using: xaxis.set_major_formatter(matplotlib.ticker.FuncFormatter(format_date))\nor\n myFmt = matplotlib.dates.DateFormatter('%Y-%m-%d')\n xaxis.set_major_formatter(myFmt)\n--\u003e I need to add this lines to every plot (static/editor and interactively saved ones)\nSolution 2: editing the files of matplotlib (dates.py ticker.py); I found the AutoDateFormatter but changed defaults do not apply. My desire is something like this (from some years ago), but that trunk version looks like my locale one: Matplotlib autodatelocator custom date formatting?\n--\u003e Couldn't examine where and which \"fmt\" is used\n","author":{"url":"https://github.com/Intheelement","@type":"Person","name":"Intheelement"},"datePublished":"2015-09-16T10:31:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5086/matplotlib/issues/5086"}
| 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:213482a9-dc64-a82b-0957-bcd3a21eb41f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8240:117213:19264EB:21E0FA7:6A535DE5 |
| html-safe-nonce | fd2e0535049f4d04202dd2a6f982312c815b3deddc1a94d31823c08725c47949 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjQwOjExNzIxMzoxOTI2NEVCOjIxRTBGQTc6NkE1MzVERTUiLCJ2aXNpdG9yX2lkIjoiMzE5ODc3OTMwMzU1NDgyMDg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e5df5c89d1a5d267ad7ece78c67fdab4a58a5d84a0f1b7aacfd4e338e5e05183 |
| hovercard-subject-tag | issue:106745196 |
| 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/5086/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d114a1eb3985002ccc935339585eb3f844d7cea0bd67f834fcaa9708fc59f1c1/matplotlib/matplotlib/issues/5086 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d114a1eb3985002ccc935339585eb3f844d7cea0bd67f834fcaa9708fc59f1c1/matplotlib/matplotlib/issues/5086 |
| og:image:alt | Some months ago I put a question on stackoverflow. http://stackoverflow.com/questions/30026790/editing-default-date-format When you are overhauling defaults for 2.0 - is there any considerations fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Intheelement |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width