alphagenome.visualization.plot_components.AbstractComponent#

class alphagenome.visualization.plot_components.AbstractComponent[source]#

Abstract base class for plot components.

Attributes#

Table

num_axes

Returns the number of matplotlib axes required by the component.

total_height

Returns the total figure height.

AbstractComponent.num_axes#

Returns the number of matplotlib axes required by the component.

AbstractComponent.total_height#

Returns the total figure height.

Methods#

Table

get_ax_height(axis_index)

Returns the plot height for the individual axis.

plot_ax(ax, axis_index, interval)

Plots the component on the given axis.

abstract AbstractComponent.get_ax_height(axis_index)[source]#

Returns the plot height for the individual axis.

Parameters:

axis_index (int) – The index of the axis.

Return type:

float

Returns:

The height of the axis.

abstract AbstractComponent.plot_ax(ax, axis_index, interval)[source]#

Plots the component on the given axis.

Parameters:
  • ax (Axes) – The matplotlib axis to plot on.

  • axis_index (int) – The index of the axis.

  • interval (Interval) – The genomic interval to plot.