dates.py and e.g. French month names

There are several other uses of strftime. Maybe some of

    > them should be changed, also...

Werner, could I trouble you to do this -- update all the uses of
strftime to properly handle locales and send me a patch?

Thanks,
JDH

Hi John,

I'll have a look at it, so I am not sure if I have code which excersises them all. Give me a few days.

See you
Werner

John Hunter wrote:

···

"Florent" == Florent Rougon <f.rougon@...185...> writes:

    > There are several other uses of strftime. Maybe some of
    > them should be changed, also...

Werner, could I trouble you to do this -- update all the uses of
strftime to properly handle locales and send me a patch?

Thanks,
JDH

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20

Hi John,

Attached is an updated dates.py (base is matplotlib 0.8) and two demo files which I changed a bit to test this date stuff (default to French locale etc).

Please note that both demo files by default use wxAgg backend, if I use the TkAgg I get the following error:

_tkinter.TclError: bad screen distance "640.0"

Maybe it has to do with the fact that the figure is actually by default a bit too small to hold the plot for date_demo_rrule2.

There is one case I changed, but could not test as I did not find a sample and haven't had time to figure it out myself how to use it. It is the "IndexDateFormatter", if anyone has a sample using this I would appreciate if he/she could post it here.

Best regards
Werner

John Hunter wrote:

dates.py (20.2 KB)

date_demo_rrule2.py (1.02 KB)

date_demo_convert2.py (1.3 KB)

···

"Florent" == Florent Rougon <f.rougon@...185...> writes:

    > There are several other uses of strftime. Maybe some of
    > them should be changed, also...

Werner, could I trouble you to do this -- update all the uses of
strftime to properly handle locales and send me a patch?

Thanks,
JDH

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20