Customizable options

Functions related to check, set and reset the plot customizable options. For graphical explanation check the first figure of the tutorial.

pyranges_plot.print_options(return_keys=False)

Prints the customizable features default values and description.

pyranges_plot.reset_options(varname='all')

Reset the deafault value for one, some or all plot layout variables to their original vlaue.

Parameters:

varname ({str, list}, default 'all') – Name of the variable/ to reset the value.

Examples

>>> import pyranges_plot as prp
>>> prp.reset_options()
>>> prp.reset_options('all')
>>> prp.reset_options('tag_bkg')
>>> prp.reset_options(['title_size', 'tag_background'])
pyranges_plot.set_options(varname, value=None)

Define some feature options of the plot layout.

Parameters:
  • varname ({str, dict}) – Name of the variable to change, or dictionary with the {variable: value} pairs. To check the available customizable options use prp.print_default().

  • value – New value of the variable to be assigned to varname if needed.

Examples

>>> import pyranges_plot as prp
>>> prp.set_options('plot_background', 'magenta')
>>> prp.set_options('title_size', 20)
>>> prp.set_options({'plot_background': 'magenta', 'title_size': 20})