Register plot
Register plot function on PyRanges objects.
- pyrangeyes.register_plot(engine=None)
Register the plot function as a method to PyRanges.
Allows to use the plot function as a method of PyRanges, as PyRanges.plot(). Optionally, set the plotting engine.
- Parameters:
engine ({str}, default None) – Optional string to set the engine for plotting: Matplotlib (‘plt’, ‘matplotlib’) or Plotly (‘ply’, ‘plotly’).
Examples
>>> import pyrangeyes as pre
>>> pre.register_plot()
>>> pre.register_plot("matplotlib")