[AstroPy] how to make a sky plot

Jonathan T. Niehof jniehof at lanl.gov
Wed Apr 2 10:10:23 EDT 2014


On 04/02/2014 07:55 AM, gonghang.naoc wrote:
> However, I can not adjust the data range. It is always -180 to 180 and I
> do not know what does [-180,180] means.
> And I can not rotate the map.  As you can see, the middle is always zero.
> Besides, I can not define a range which could let me plot a part sky map.

Trying to do set_xlim on the axes with a defined projection raises an 
error "It is not possible to change axes limits for geographic 
projections. Please consider using Basemap or Cartopy." So, try basemap? 
http://matplotlib.org/basemap/ It's fairly geographic-specific but 
should be bendable. (Don't know if it's possible to label RA in hours 
instead of degrees longitude.)

-- 
Jonathan Niehof
ISR-3 Space Data Systems
Los Alamos National Laboratory
MS-D466
Los Alamos, NM 87545

Phone: 505-667-9595
email: jniehof at lanl.gov

Correspondence /
Technical data or Software Publicly Available



More information about the AstroPy mailing list