change hour format in date plotting

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"?

Everything else should stay the same.

Thanks,
Che

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,

ยทยทยท

On Sat, Apr 4, 2009 at 06:37, C M <cmpython@...287...> 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"?

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