本文整理汇总了Python中aplpy.FITSFigure.close方法的典型用法代码示例。如果您正苦于以下问题:Python FITSFigure.close方法的具体用法?Python FITSFigure.close怎么用?Python FITSFigure.close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类aplpy.FITSFigure
的用法示例。
在下文中一共展示了FITSFigure.close方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_beam_pad
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_beam_pad():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_beam(major=0.1, minor=0.04, angle=10.)
f.beam.set_pad(0.1)
f.beam.set_pad(0.3)
f.close()
示例2: test_frame_linewidth
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_frame_linewidth():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.frame.set_linewidth(0)
f.frame.set_linewidth(1)
f.frame.set_linewidth(10)
f.close()
示例3: test_scalebar_frame
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_scalebar_frame():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_scalebar(0.1)
f.scalebar.set_frame(True)
f.scalebar.set_frame(False)
f.close()
示例4: test_beam_hatch
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_beam_hatch():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_beam(major=0.1, minor=0.04, angle=10.)
for hatch in ['/', '\\', '|', '-', '+', 'x', 'o', 'O', '.', '*']:
f.beam.set_hatch(hatch)
f.close()
示例5: test_ticks_minor_frequency
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_ticks_minor_frequency():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.ticks.set_minor_frequency(1)
f.ticks.set_minor_frequency(5)
f.ticks.set_minor_frequency(10)
f.close()
示例6: test_beam_frame
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_beam_frame():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_beam(major=0.1, minor=0.04, angle=10.)
f.beam.set_frame(True)
f.beam.set_frame(False)
f.close()
示例7: test_ticks_color
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_ticks_color():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.ticks.set_color('black')
f.ticks.set_color('#003344')
f.ticks.set_color((1.0, 0.4, 0.3))
f.close()
示例8: test_ticks_linewidth
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_ticks_linewidth():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.ticks.set_linewidth(1)
f.ticks.set_linewidth(3)
f.ticks.set_linewidth(10)
f.close()
示例9: test_scalebar_font
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_scalebar_font():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_scalebar(0.1)
f.scalebar.set_font(size='small', weight='bold', stretch='normal',
family='serif', style='normal', variant='normal')
f.close()
示例10: test_scalebar_length
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_scalebar_length():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_scalebar(0.1)
f.scalebar.set_length(0.01)
f.scalebar.set_length(0.1)
f.close()
示例11: test_grid_showhide
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_grid_showhide():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_grid()
f.grid.hide()
f.grid.show()
f.close()
示例12: test_scalebar_showhide
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_scalebar_showhide():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_scalebar(0.1)
f.scalebar.hide()
f.scalebar.show(0.1)
f.close()
示例13: test_scalebar_addremove
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_scalebar_addremove():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_scalebar(0.1)
f.remove_scalebar()
f.add_scalebar(0.1)
f.close()
示例14: test_grid_addremove
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_grid_addremove():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_grid()
f.remove_grid()
f.add_grid()
f.close()
示例15: test_scalebar_corner
# 需要导入模块: from aplpy import FITSFigure [as 别名]
# 或者: from aplpy.FITSFigure import close [as 别名]
def test_scalebar_corner():
data = np.zeros((16, 16))
f = FITSFigure(data)
f.add_scalebar(0.1)
for corner in ['top', 'bottom', 'left', 'right', 'top left', 'top right',
'bottom left', 'bottom right']:
f.scalebar.set_corner(corner)
f.close()