本文整理匯總了Python中sunpy.map.Map.plot_settings["norm"]方法的典型用法代碼示例。如果您正苦於以下問題:Python Map.plot_settings["norm"]方法的具體用法?Python Map.plot_settings["norm"]怎麽用?Python Map.plot_settings["norm"]使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sunpy.map.Map
的用法示例。
在下文中一共展示了Map.plot_settings["norm"]方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: range
# 需要導入模塊: from sunpy.map import Map [as 別名]
# 或者: from sunpy.map.Map import plot_settings["norm"] [as 別名]
yloc = np.zeros(ny)
for j in range(0, ny - 1):
yloc[j] = cy - wave_progress_map.pixel_to_data(0 * u.pix, j * u.pix)[1].to(u.arcsec).value
for i in range(0, nx - 1):
for j in range(0, ny - 1):
disk[i, j] = np.sqrt(xloc[i] ** 2 + yloc[j] ** 2) < r
# Zero out the off-disk locations
if use_disk_mask:
wpm_data = wave_progress_map.data * disk
else:
wpm_data = wave_progress_map.data
wp_map = Map(wpm_data, wave_progress_map.meta).rotate(angle=angle)
wp_map.plot_settings["norm"] = ImageNormalize(vmin=1, vmax=len(timestamps), stretch=LinearStretch())
wp_map.plot_settings["cmap"] = c_map_cm
wp_map.plot_settings["norm"].vmin = 1
# Create a wave progress map. This is a composite map with a colorbar that
# shows timestamps corresponding to the progress of the wave, and a typical
# image from the time of the wave.
# TODO: make the zero value pixels completely transparent
# Observation date
observation_date = mc[0].date.strftime("%Y-%m-%d")
# Create the composite map
c_map = Map(mc[0], wp_map, composite=True)
# Observational data map