|
From: Eric F. <ef...@ha...> - 2008-10-06 05:27:45
|
dasratsel wrote: > Hi, > > I've done some poking an I can't find a way to use imshow() to plot a > luminosity map on a hammer projection. (looking to generate a plot like > http://en.wikipedia.org/wiki/Image:WMAP_2008.png). Just setting the > projection in a call to subplot gives some axes and an off-center retangular > image of my array. Bearing in mind that I am completely new to matplotlib, > does anyone have an idea of how to get this sort of plot? > > Thanks, > Kris > > (PS. Apologies if this shows up in two places, I'm not used to using mailing > lists) Kris, For any sort of mapping like this, you will probably want to use basemap matplotlib toolkit, except that I don't see "hammer" among the supported projections. With straight mpl, imshow does not support projections. You could use pcolor (very slow) or pcolormesh. In neither case will you get interpolation; you will be specifying colored quadrilaterals. Eric |