Erik Tollerud wrote:
> I've been playing with some of the projections in matplotlib,
> recently, and have some questions/noticed some odd behavior:
>
> 1. Is there any way to activate a projection mode with the pyplot
> interface other than the subplot(111,projection='whatever') method a
> la /examples/api/custom_projection_example.py ?  Along these same
> lines, is the projection feature documented in greater detail
> somewhere?  About everything I've figured out has come from
> custom_projection_example.py ...
>   
There is some additional documentation in the new documentation here:

http://matplotlib.sourceforge.net/doc/html/devel/add_new_projection.html
> 2. I have a skymap I would like to plot using a particular projection
> - what I've been doing so far is specifying x and y coordinates using
> mgrid and calling contourf(x,y,data,100) to approximate this.  But
> what I'd rather do is something like
> imshow(data,extent=[-pi,pi,-pi/2,pi/2]) ... when I call that with a
> projection axis activated, the projection isn't honored - the image
> just appears as a regular square box.  Is there any way to get imshow
> to respect the projection?
>   
As Jae-Joon suggested, try pcolor.  It will be slower (and there are no 
interpolation options), but it should use the custom projection.  imshow 
is really optimized for uniform, rectilinear images.

Cheers,
Mike

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