SymbolPlotter#

class biotite.sequence.graphics.SymbolPlotter(axes)[source]#

Bases: object

Subclasses of this abstract base class define how symbols in an alignment are drawn onto an Axes object.

Subclasses must override the plot_symbol() method.

Parameters:
axesAxes

A Matplotlib axes, that is used as plotting area.

abstract plot_symbol(bbox, alignment, column_i, seq_i)#

Get the color of a symbol at a specified position in the alignment.

The symbol is specified as position in the alignment’s trace (trace[pos_i, seq_i]).

Parameters:
bboxBbox

The axes area to plot the symbol in

alignmentAlignment

The respective alignment.

column_iint

The position index in the trace.

seq_iint

The sequence index in the trace.