[AstroPy] APLpy color bar for markers
Ke Wang
kwang at eso.org
Mon Mar 7 10:52:59 EST 2016
Hi,
This should be a simple question, but I just don't find an obvious solution:
I use APLpy to plot a FITS image with nice wcs coordinates support, and
overlay color coded markers:
fig = aplpy.FITSFigure('image.fits')
fig.show_colorscale(cmap='gray')
fig.show_markers(ra, dec, c=velocity, cmap='rainbow')
fig.add_colorbar()
This will plot a gray color bar (for the image). But I want to display the
rainbow (for markers). Any idea would be appreciated.
Cheers,
Ke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20160307/c9dffd87/attachment.html>
More information about the AstroPy
mailing list