On Sat, Apr 4, 2009 at 06:37, C M <cmpyt...@gmail.com> wrote:
> I am pretty happy with the default for how dates ticks
> are updated with zooming the plot with the navigation
> toolbar...until it gets down to the level of hours.
>
> Hours are by default displayed in a format like:
> "23:00:00 UTC".  How can I get it to display it in a
> more common way, such as "11:00 pm", or better,
> "11 pm, 3/15"?

something like:

# init figures
fig = figure()
ax = fig.add_subplot(111)
# plot the lines
ax.plot_date(...)
# x data (dates) formatter
ax.xaxis.set_major_formatter( DateFormatter('PUT YOUR FORMAT HERE') )

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to