ProteinMotion
Reference navigation

Text and labels

proteinmotion.annotations

Write text, label amino acids and nucleotides, and connect labels to regions.

Guide and rendered examples →

Classes

NameDescription
AnnotationclassBase class for text and lines drawn over the image.
TextclassDraw shaped vector text over the protein image.
CalloutclassConnect an image label to a selected region with a line.
ResidueLabelclassLabel one amino acid at its projected Cα position.
ResidueLabelsclassLabel several residues and adjust their positions to reduce overlap.
WriteclassDraw text outlines and then fill the glyphs.
UnwriteclassErase glyph fills and then their outlines.
AnnotationAnimateclassBuild position, offset, and opacity animations for annotations.
TextGroupclassVertically arrange Text objects and animate a caption as one object. Child positions are ignored.
View module source