morphomapping.MM.cat_plot#
- MM.cat_plot(feature, subs, colors, outputf, fig_width, fig_height, fig_title, label_x, label_y, range_x, range_y, hover_tooltips=None, show_legend=False, point_size=10, point_alpha=0.6, show_axes=False, title_align='center')#
Create plot with categorical color mapper.Choose feature, colors and more. Loads html file.
- Parameters:
feature (
str) – feature for categorical mappersubs (
list[str]) – values of featurecolors (
list[str]) – list of colorsoutputf (
str) – path to outputfilefig_width (
int) – width of figurefig_height (
int) – height of figurefig_title (
str) – title of figurelabel_x (
str) – x-axis labellabel_y (
str) – y-axis labelrange_x (
list[float]) – x-axis rangerange_y (
list[float]) – y-axis rangehover_tooltips (
list[tuple[str,str]]) – hover tooltipsshow_legend (
bool) – possibility to add legendpoint_size (
int) – size of pointspoint_alpha (
float) – alpha of pointsshow_axes (
bool) – add axestitle_align (
str) – position of title
- Return type:
show plot