bsxplorer.HeatMap.draw_mpl

HeatMap.draw_mpl(label: str = '', tick_labels: list[str] | None = None, show_border: bool = True, vmin: float | None = None, vmax: float | None = None, color_scale='Viridis', facet_cols: int = 4, **kwargs)[source]

Draws heat-map plot on given matplotlib axes.

Parameters:
  • label – Title for axis

  • vmin – Set minimum value for colorbar explicitly.

  • vmax – Set maximum value for colorbar explicitly.

  • color_scale – Name of color scale.

  • tick_labels – Labels for upstream, body region start and end, downstream (e.g. TSS, TES). Exactly 5 need to be provided. Set None to disable.

  • show_border – Whether to draw dotted vertical line on body region borders or not.

  • facet_cols – Maximum number of plots on the same row.

Return type:

matplotlib.pyplot.Figure

See also

matplotlib.pyplot.Figure

Matplotlib color scales: For possible colormap color_scale arguments.