Re: [Matplotlib-users] matshow / imshow with date-axis

2010-03-29 Thread Atomfried
Hi Matthias, Thanks for the help. The problem is, however, that the 'extent' parameter only manipulates the range of the (integer) values on the axis. Before setting the *axis_date property, I need to set the axes data to arrays of (non-equidistant) floats. Best Regards, Micha Matthias Michler

Re: [Matplotlib-users] Making a data-driven colormap

2010-03-29 Thread Atomfried
I once had a similar issue. I solved it like this. It takes the minimum and maximum of the data and returns a colormap: Zero: White, Positive values: blue, Negative values: red. def mxcmap(_min,_max): if _min >= 0 and _max >= 0: cdict = {'red': ((0.0, 1.0, 1.0),

[Matplotlib-users] matshow / imshow with date-axis

2010-03-29 Thread Atomfried
Hi, is it possible to perform a surface plot a NxM matrix with date-axes? Similar to plot_date for 1D-Plots. The dates are available as an N-sized (or M-sized) array of float values. At the moment, I am using imshow or matshow for the color plots, but the only way I found to manipulate the axes