Plots dates on contour plot

Dear matplotlib users,

I’ve been successful to plot 2-D lines with dates in the x-axis directly like:

plot(time,dens[1,:])

Where times starts at 1998-01-11 01:00:00 and ends at 1998-02-06 08:00:00 (633 elements). and dens has 10 elements. Now I’m trying to make a contour plot like:

CS = contourf(tempo, depth, dens)

But I cannot make the dates appear, the plot shows only the “date number”.

Thanks for any help, Filipe

ps:
matplotlib version: 0.99.1.1
backend: Qt4Agg
llinux Opensuse 11.2

···

Filipe Pires Alvarenga Fernandes

Email: falvarengafernandes@…1874…
ocefpaf@…1896…

http://ocefpaf.tiddlyspot.com/


Filipe Pires Alvarenga Fernandes wrote:

Dear matplotlib users,

I've been successful to plot 2-D lines with dates in the x-axis directly like:

> plot(time,dens[1,:])

Where times starts at 1998-01-11 01:00:00 and ends at 1998-02-06 08:00:00 (633 elements). and dens has 10 elements. Now I'm trying to make a contour plot like:

> CS = contourf(tempo, depth, dens)

But I cannot make the dates appear, the plot shows only the "date number".

This is a bug, now fixed in svn.

As a workaround, try something like this after the call to contour:

ax = gca()
ax.xaxis_date()
draw()

(The draw() is needed only if you are working interactively.)

Eric

···

Thanks for any help, Filipe

ps:
matplotlib version: 0.99.1.1
backend: Qt4Agg
llinux Opensuse 11.2

*****************************************************
Filipe Pires Alvarenga Fernandes

Email: falvarengafernandes@…1874… <mailto:falvarengafernandes@…1874…>
          ocefpaf@…287… <mailto:ocefpaf@…287…>

http://ocefpaf.tiddlyspot.com/
*****************************************************

------------------------------------------------------------------------

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev

------------------------------------------------------------------------

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