本文整理汇总了Python中aplpy.FITSFigure.hide_tick_labels方法的典型用法代码示例。如果您正苦于以下问题:Python FITSFigure.hide_tick_labels方法的具体用法?Python FITSFigure.hide_tick_labels怎么用?Python FITSFigure.hide_tick_labels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aplpy.FITSFigure
的用法示例。
在下文中一共展示了FITSFigure.hide_tick_labels方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: make_rgb_image
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import hide_tick_labels [as 别名]
import os
'''
For proposal: 2016.1.00750.S
'''
path = "/media/eric/Data_3/NGC1313/"
fits_cube = os.path.join(path, "ngc1313_noao.fits")
fits_twod = os.path.join(path, "ngc1313_noao_2d.fits")
rgb_image = os.path.join(path, "ngc1313_noao_rgb.png")
# Make RGB image if it isn't there
if not os.path.exists(rgb_image):
make_rgb_image(fits_cube, rgb_image)
fig = FITSFigure(fits_twod)
fig.show_rgb(rgb_image)
# fig.show_grayscale(invert=True)
# ALMA regions
fig.show_regions("ngc1313_targets.reg")
# Hubble ACS field outlines
fig.show_regions(os.path.join(path, "HST/final_mosaic/coverage_outline.reg"))
fig.hide_tick_labels()
fig.hide_xaxis_label()
fig.hide_yaxis_label()
# Should be zoomed in on before saving
# fig.save(os.path.join(path, "ngc1313_noao_field_overlays.png"))
# Also needs to be re-orientated such that N is actually up-sh
示例2: FITSFigure
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import hide_tick_labels [as 别名]
halp_long = halp_proj.longitude_extrema
halp_lat = halp_proj.latitude_extrema
hi_proj = hi_proj.subprojection(xlo=halp_long[1], xhi=halp_long[0], ylo=halp_lat[0], yhi=halp_lat[1])
co21_proj = co21_proj.subprojection(xlo=halp_long[1], xhi=halp_long[0], ylo=halp_lat[0], yhi=halp_lat[1])
fig = p.figure()
# Halpha
halp_fig = FITSFigure(halp_proj.hdu, subplot=(2, 3, 1), figure=fig)
halp_fig.show_grayscale(stretch="log", vmin=0.01)
halp_fig.hide_xaxis_label()
halp_fig.hide_yaxis_label()
halp_fig.hide_tick_labels()
halp_fig.set_title(r"H$\alpha$")
hi_fig = FITSFigure(hi_proj.hdu, subplot=(2, 3, 2), figure=fig)
hi_fig.show_grayscale()
hi_fig.hide_xaxis_label()
hi_fig.hide_yaxis_label()
hi_fig.hide_tick_labels()
hi_fig.set_title(r"HI")
hi_fig.set_nan_color("k")
hi_fig.show_regions("pvslices_finalfig.reg")
co21_fig = FITSFigure(co21_proj.hdu, subplot=(2, 3, 3), figure=fig)
co21_fig.show_grayscale()
co21_fig.hide_xaxis_label()
co21_fig.hide_yaxis_label()