hmi_mag_color_table

sunpy.visualization.colormaps.color_tables.hmi_mag_color_table()[source]

Returns an alternate HMI Magnetogram color table; from Stanford University/JSOC.

Examples

>>> # Example usage for NRT data:
>>> import sunpy.map
>>> import matplotlib.pyplot as plt
>>> hmi = sunpy.map.Map('fblos.fits')  
>>> hmi.plot_settings['cmap'] = plt.get_cmap('hmimag')  
>>> hmi.peek(vmin=-1500.0, vmax=1500.0)  
>>> # OR (for a basic plot with pixel values on the axes)
>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> import sunpy.map
>>> hmi = sunpy.map.Map('fblos.fits')  
>>> plt.imshow(np.clip(hmi.data, -1500.0, 1500.0), cmap=plt.get_cmap('hmimag'), origin='lower')  
>>> plt.show()  
>>> # Example usage for science (Level 1.0) data:
>>> import numpy as np
>>> import sunpy.map
>>> hmi = sunpy.map.Map('hmi.m_45s.2014.05.11_12_00_45_TAI.magnetogram.fits')  
>>> hmir = hmi.rotate()  
>>> hmir.plot_settings['cmap'] = plt.get_cmap('hmimag')  
>>> hmir.peek(vmin=-1500.0, vmax=1500.0)  

References