def drawSpatial(self, ax=None):
if not ax: ax = plt.gca()
# Stellar Catalog
self._create_catalog()
cut = (self.catalog.color > 0) & (self.catalog.color < 1)
catalog = self.catalog.applyCut(cut)
ax.scatter(catalog.lon,catalog.lat,c='k',marker='.',s=1)
ax.set_xlim(self.glon-0.5,self.glon+0.5)
ax.set_ylim(self.glat-0.5,self.glat+0.5)
ax.set_xlabel('GLON (deg)')
ax.set_ylabel('GLAT (deg)')
评论列表
文章目录