PromoterPlotter#

class biotite.sequence.graphics.PromoterPlotter(line_width=2, head_width=2, head_length=6, head_height=0.8)[source]#

Bases: FeaturePlotter

A plotter for regulatory features with the promoter or TATA_box class.

Draws a simple curved thin black arrow.

Parameters:
line_widthfloat, optional

The width of the curved arrow tail.

head_widthfloat, optional

The width of the arrow head.

head_lengthfloat, optional

The length of the arrow.

head_heightfloat, optional

The Y-position of the arrow head as fraction of the halffeature drawing area height.

draw(axes, feature, bbox, loc, style_param)#

Draw a feature onto an axes.

Parameters:
axesAxes

A Matplotlib axes, that is used as plotting area.

featureFeature

The feature to be drawn.

bboxBbox

The bounding box, that describes the area on the axes, where the feature should be drawn.

locationint

The location of the feature, that should be drawn. Might be useful, when the visualization is dependent on e.g. location defects.

style_paramdict

Additional style parameters.

matches(feature)#

Check, whether this object is able to draw a given sequence feature.

Parameters:
featureFeature

The sequence feature to be checked.

Returns:
compatibilitybool

True, if this object is able to draw the given feature, false otherwise.