I tried
import locale
locale.setlocale(locale.LC_TIME,'en_US')
tyme = [datetime(2009,10,6,12) + timedelta(hours=6*i) for i in range(5)]
plt.contour(x, tyme, data)
ax=plt.gca()
ax.yaxis.set_major_formatter(matplotlib.dates.DateFormatter('%Hz%d%b'))
but yaxis labels are ploted not like 00Z07Oct but 00Z0710□ (probably ploted in my language environment, Japanese, and the characters are garbled.)
On the other hand, I tried,
import locale
locale.setlocale(locale.LC_TIME,'en_US')
print datetime(2009,10,7,0).strftime(''%Hz%d%b)
the result is
00z07Oct
This works well.
How can I set matplotlib.dates.DateFormatter for English in different language environment? Any help would be appreciated.