def chans( x:ndarray, # Input array cmap:str='twilight', # Use matplotlib colormap by this name cm_below:str='blue', cm_above:str='red', cm_ninf:str='cyan', cm_pinf:str='fuchsia', cm_nan:str='yellow', gutter_px:int=3, # Draw write gutters when tiling the images frame_px:int=1, # Draw black frame around each image scale:int=1, # Stretch the image. Only itegers please. cl:Any=True, view_width:int=966, ax:Optional=None)->ChanProxy:
Map x values to colors. RGB[A] color is added as channel-last