bsxplorer.LinePlot.draw_mpl

LinePlot.draw_mpl(fig_axes: tuple | None = None, label: str = '', tick_labels: list[str] | None = None, show_border: bool = True, **kwargs) Figure[source]

Draws line-plot on given matplotlib axes.

Parameters:
  • fig_axes – Tuple of (matplotlib.pyplot.Figure, matplotlib.axes.Axes). New are created if None

  • label – Label of line on line-plot

  • 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

  • kwargs – Keyword arguments for matplotlib.plot

Return type:

matplotlib.pyplot.Figure

See also

LinePlot example

matplotlib.pyplot.Figure

matplotlib.pyplot.subplot() : To create fig, axes

Linestyles : For possible linestyles.