morphomapping.MM.cat_plot

Contents

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 mapper

  • subs (list[str]) – values of feature

  • colors (list[str]) – list of colors

  • outputf (str) – path to outputfile

  • fig_width (int) – width of figure

  • fig_height (int) – height of figure

  • fig_title (str) – title of figure

  • label_x (str) – x-axis label

  • label_y (str) – y-axis label

  • range_x (list[float]) – x-axis range

  • range_y (list[float]) – y-axis range

  • hover_tooltips (list[tuple[str, str]]) – hover tooltips

  • show_legend (bool) – possibility to add legend

  • point_size (int) – size of points

  • point_alpha (float) – alpha of points

  • show_axes (bool) – add axes

  • title_align (str) – position of title

Return type:

show plot