From: Eric Firing <efiring@ha...>  20070805 18:09:24

Tommy, The easiest way is probably to provide contourf with x and y arguments corresponding to the bin centers. The x vector would have an entry for each column in your Z(x,y), and the y vector an entry for each row. In [1]:z = rand(10,20) In [2]:x = 2*arange(20) In [3]:y = 2*arange(10) In [4]:contourf(x,y,z) Eric Tommy Grav wrote: > I am creating a 2 dimensional histogram that I would like to plot as > a contourf plot with > matplotlib. I am using numpy to generate the histogram, but when I > plot it the tick marks > are of course the index of the histogram array. How do I change these > tick labels to > the value of the bins used to generate the histogram? > > Cheers > Tommy > >  > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 