Hi all,
I would like to know how to set locale settings for matplotlib.
When I use the plot_date function, labels are in french (my system's
default locale). I would like english. I tried to set locale and it works
ok with strftime :
import locale
print(locale.getlocale())
('fr_FR', 'UTF-8')
mydate=dates.datetime.date(1950,1,15)
mydate.strftime('%A %d %B %Y')
Out[19]: 'dimanche 15 janvier 1950'
locale.setlocale(locale.LC_ALL,'en_US')
Out[21]: 'en_US'
mydate.strftime('%A %d %B %Y')
Out[22]: 'Sunday 15 January 1950'
But this has no effect on the plot_date results...
In my mpl.rcParams, 'axes.formatter.use_locale' is set to False.
How can I set locale configuration for matplotlib ?
Any advice welcome !
Thank you !
Clement
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users