imshow always assumes a regular rectangular grid of pixels.  To plot 
image data on a non-rectilinear projection, you need to use pcolor or 
pcolormesh.

You may also want to look at the basemap toolkit, which provides much 
better support for geographic projections.  The ones included in 
matplotlib are essentially "toy" examples to test the infrastructure, 
but aren't really intended for advanced usage.

Cheers,
Mike

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)
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to