aplpy

APLpy show markers normalized by a colormap

北慕城南 提交于 2019-12-12 02:52:26
问题 I am using APLpy to plot a fits file and want to overplot markers on that fits file at certain ra,dec values. I want the colours of the markers to be coded with another parameter, lets say a magnitude. So what I do is I read the marker coordinates and the corresponding magnitudes from a textfile (positions.dat): ra = np.genfromtxt('positions.dat', dtype=float, comments='%', delimiter=';', missing_values='_', skip_header=1, usecols = (0)) dec = np.genfromtxt('positions.dat', dtype=float,

APLpy/matplotlib: Coordinate grid alpha levels for EPS quality figure

旧时模样 提交于 2019-12-08 12:20:33
问题 In the normal matplotlib axes class, it is possible to set gridlines to have a certain transparency (alpha level). I'm attempting to utilise this with the APLpy package using the following: fig = pyplot.figure(figsize=(18,8)) gridspec_layout = gridspec.GridSpec(1,2) gridspec_layout1 = gridspec.GridSpecFromSubplotSpec(3, 3, subplot_spec=gridspec_layout[1], hspace=0.0, wspace=0.0) pyplot_0 = fig.add_subplot(gridspec_layout1[0]) pyplot_1 = fig.add_subplot(gridspec_layout1[1]) pyplot_2 = fig.add

Aplpy multiplot dynamic axis sharing

折月煮酒 提交于 2019-11-30 16:00:13
Is there any way to make multiplot aplpy plots dynamically share axes so that when one is moved or zoomed, it moves and zooms the others? I can achieve the affect using matplotlib pyplot's imshow and subplot routines, but using those limits some other important aspects of my plotting, while aplpy provides all the tools I need for my images. I have tried using the matplotlib cid commands and a function to recenter all the images based on click locations, but I can only zoom in, or out, not both, and I cant click and drag yet. My MWE of my plotting code is below: from astropy.io import fits

Aplpy multiplot dynamic axis sharing

こ雲淡風輕ζ 提交于 2019-11-30 07:42:44
问题 Is there any way to make multiplot aplpy plots dynamically share axes so that when one is moved or zoomed, it moves and zooms the others? I can achieve the affect using matplotlib pyplot's imshow and subplot routines, but using those limits some other important aspects of my plotting, while aplpy provides all the tools I need for my images. I have tried using the matplotlib cid commands and a function to recenter all the images based on click locations, but I can only zoom in, or out, not