mdciao.flare.add_fragment_labels¶
-
mdciao.flare.
add_fragment_labels
(fragments, fragment_names, iax, angle_offset=0, padding=[0, 0, 0], fontsize=5, center=[0, 0], r=1.0, xy=None)¶ Add fragment labels to a flareplot
Very similar to
add_residue_labels
but does not “radiate” the labels, it puts them in the angular center of the residues contained in each fragment- Parameters
fragments (iterable if iterables of ints) – The fragment definitions
fragment_names (iterable of strs, len(fragments)) – The fragment names
iax (
Axes
) – The axis to write onangle_offset (scalar, scalar default is 0) – Where the circle starts, in degrees. 0 means 3 o’clock, 90 12 o’clock etc. It’s the phi of polar coordinates
padding (list, default is [0,0,0]) –
first integer : Put this many empty positions before the first dot
second integer: Put this many empty positions between fragments
third integer : Put this many empty positions after the last dot
fontsize (float, default is 5) – The fontsize in which the fragment names are written
center (pair for floats, default is (0,0)) – The center of the flareplot
r (scalar, default is 1) – The radius at which the labels will be put
xy (list or 2D np.ndarray, None) – The positions of the members of each fragment, has to be of len==_np.hstack(fragments). If None, then positions will be computed by
cartify_fragments
usingr
,angle_offset
, andpadding
.
- Returns
fragment_labels
- Return type
list of the
Text
objects