FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Default date format for axis formatting · Issue #5086 · matplotlib/matplotlib · GitHub

Repository navigation

Default date format for axis formatting #5086

Closed

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 using locals or ISO style?

I read about (not really) related topics here:
#4808
#4809

As stated at stackoverflow editing the files didn't work as aspected.
If it is not in scope of your work some help at stackoverflow would be nice.

Text at stackoverflow:
locale is "none"; resulting in "american style" dates (Apr 25 2015) instead of iso style (YYYY-MM-DD)
On 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...
Solution 1: Adjusting the dates in every single plot using: xaxis.set_major_formatter(matplotlib.ticker.FuncFormatter(format_date))
or
myFmt = matplotlib.dates.DateFormatter('%Y-%m-%d')
xaxis.set_major_formatter(myFmt)
--> I need to add this lines to every plot (static/editor and interactively saved ones)
Solution 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?
--> Couldn't examine where and which "fmt" is used

Activity

  1. added this to the milestone on Sep 16, 2015
  2. added a commit that references this issue on Nov 8, 2015
    f4e6dca
  3. self-assigned this
    on Nov 8, 2015
  4. added 8 commits that reference this issue on Nov 11, 2015
    9995d68
    9fe9eae
    72a6988
    1c92b74
    f529634
    41c2a7c
    8d6eedc
    755b44e
  5. added 4 commits that reference this issue on Dec 14, 2015
    395ec58
    10f8733
    d6701eb
    1a4d003
  6. added a commit that references this issue on Dec 19, 2015
    1849626
  7. added 2 commits that reference this issue on Dec 31, 2015
    d96e7b9
    c84966c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL