Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default date format for axis formatting #5086

Closed
Intheelement opened this issue Sep 16, 2015 · 0 comments
Closed

Default date format for axis formatting #5086

Intheelement opened this issue Sep 16, 2015 · 0 comments
Assignees
Milestone

Comments

@Intheelement
Copy link

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

@tacaswell tacaswell added this to the next major release (2.0) milestone Sep 16, 2015
tacaswell added a commit to tacaswell/matplotlib that referenced this issue Nov 8, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
@tacaswell tacaswell self-assigned this Nov 8, 2015
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 11, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 16, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 16, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 17, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 23, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 25, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 27, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Nov 27, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Dec 14, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Dec 14, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Dec 14, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Dec 17, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Dec 31, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
mdboom pushed a commit to mdboom/matplotlib that referenced this issue Dec 31, 2015
 - Use ISO complient formats by default
 - aded extra level of scale (seconds)
 - add rcparams for all of these strings

closes matplotlib#4808 closes matplotlib#4809 closes matplotlib#5086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants