Plots

plot functions.

%load_ext autoreload %autoreload 2


source

make_categorical_legend

 make_categorical_legend (values:List[str],
                          cmap:Optional[matplotlib.colors.Colormap],
                          **kwargs)

source

convert_cmap_to_categorical

 convert_cmap_to_categorical (values:List[str],
                              cmap:Optional[matplotlib.colors.Colormap])

source

mpl_cat_val

 mpl_cat_val (i:int, n:int)

source

mpl_cur_cmap

 mpl_cur_cmap (cmap:Optional[matplotlib.colors.Colormap]=None)

source

setup_grid_figure

 setup_grid_figure (ncols:Optional[int]=1, nrows:Optional[int]=1,
                    figsize:Optional[Tuple[int,int]]=(12, 8),
                    dpi:Optional[int]=300, hspace:Optional[float]=0.3,
                    wspace:Optional[float]=None,
                    frameon:Optional[bool]=False, **kwargs)

source

scale_figsize_for_grid

 scale_figsize_for_grid (figsize:Optional[Tuple[int,int]]=(12, 8),
                         n_cols:Optional[int]=1, n_rows:Optional[int]=1)

source

set_rc_params

 set_rc_params (params:Optional[dict]=None)

source

triple_scatter

 triple_scatter (data:numpy.ndarray, ax:matplotlib.axes._axes.Axes,
                 c:Union[List[str],List[float]], s:List[float],
                 cmap:Optional[matplotlib.colors.Colormap]=None,
                 alpha:float=1, marker:str='.', point_size:float=300,
                 hide_axes:bool=True, frameon:bool=False)

source

hide_axes

 hide_axes (ax:matplotlib.axes._axes.Axes)