当前位置: 首页>>代码示例>>Python>>正文


Python FITSFigure.hide_xaxis_label方法代码示例

本文整理汇总了Python中aplpy.FITSFigure.hide_xaxis_label方法的典型用法代码示例。如果您正苦于以下问题:Python FITSFigure.hide_xaxis_label方法的具体用法?Python FITSFigure.hide_xaxis_label怎么用?Python FITSFigure.hide_xaxis_label使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在aplpy.FITSFigure的用法示例。


在下文中一共展示了FITSFigure.hide_xaxis_label方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: load_hi

# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import hide_xaxis_label [as 别名]
_, hi_proj = load_hi()
_, co21_proj = load_co21_IRAM()

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()
开发者ID:e-koch,项目名称:VLA_Lband,代码行数:33,代码来源:ngc604_pvslices.py

示例2: make_rgb_image

# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import hide_xaxis_label [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
开发者ID:e-koch,项目名称:ewky_scripts,代码行数:32,代码来源:ngc1313_mosaic_figure.py

示例3: FITSFigure

# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import hide_xaxis_label [as 别名]
import matplotlib.pyplot as mpl

'''
Show the moment 0 of the archival against the moment 0 from 14B-088
'''

fig = mpl.figure(figsize=(15, 7))

mom0_file = "/media/eric/MyRAID/M33/14B-088/HI/full_imaging/M33_14B-088_HI.clean.image.pbcov_gt_0.3_masked.mom0.fits"

f1 = FITSFigure(mom0_file, figure=fig, subplot=[0.1,0.1,0.35,0.8])
# f1.set_tick_labels_font(size='x-small')
# f1.set_axis_labels_font(size='small')
f1.show_grayscale()

f1.hide_xaxis_label()
f1.hide_xtick_labels()

f1.hide_yaxis_label()
f1.hide_ytick_labels()

mom0_archival_file = "/media/eric/Data_3/M33/VLA_Data/AT0206/imaging/M33_206_b_c_HI.mom0.fits"

f2 = FITSFigure(mom0_archival_file, figure=fig, subplot=[0.5,0.1,0.35,0.8])
# f2.set_tick_labels_font(size='x-small')
# f2.set_axis_labels_font(size='small')
f2.show_grayscale()

f2.hide_xaxis_label()
f2.hide_xtick_labels()
开发者ID:e-koch,项目名称:VLA_Lband,代码行数:32,代码来源:new_vs_archival_mom0.py


注:本文中的aplpy.FITSFigure.hide_xaxis_label方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。