alphagenome.visualization.plot_components.EmptyComponent#

class alphagenome.visualization.plot_components.EmptyComponent(fig_height=1.0)[source]#

An empty plotting component.

Attributes#

Table

num_axes

Returns the number of matplotlib axes required by the component.

EmptyComponent.num_axes#

Returns the number of matplotlib axes required by the component.

EmptyComponent.total_height#

Returns the total figure height.

Methods#

Table

get_ax_height(axis_index)

Returns the height of the axis.

plot_ax(ax, axis_index, interval)

Plot an empty axis, removing all labels and spines from the axis.

EmptyComponent.get_ax_height(axis_index)[source]#

Returns the height of the axis.

Return type:

float

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

Plot an empty axis, removing all labels and spines from the 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.