Hi Leon
This is a little complicated actually. Iris will not do the date conversion here to avoid a limitation in matplotlib. A fix for the issue in matplotlib is currently under review.
The good news is that even though matplotlib has some issues with datetime coordinates for 2d plots, contourf in *matplotlib* can handle 1D datetime coordinates. The bad news is that Iris won't let you...
At the moment I can only offer you the extremely crude workaround of doing it manually. Assuming the cube is an iris cube ['time', 'latitude']:
import iris.plot as iplt
import matplotlib.pyplot as plt
cube = ... # some cube loading here
# get the cube's coordinates
time = cube.coord('time')
lat = cube.coord('latitude')
# construct nice datetime values from the time coordinate
# borrows a private function from iris.plot, not a great idea
# in general but it works for now
x = iplt._fixup_dates(time, time.points)
# extract latitude coordinate points and data values
y = lat.points
z = cube.data.T
plt.contourf(x, y, z)
plt.gcf().autofmt_xdate()# makes labels easier to read
# you'll need to add your own axis labels and title
# ...
plt.show()
It would be really good if we could implement a temporary fix for this in iris, since the matplotlib fix won't appear until mpl v1.4.0 which is around 6 months away I would imagine. I'm not sure how though. Perhaps others have some ideas...
Andrew