flexitext
Draw text with multiple formats.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x
|
float
|
The horizontal position to place the text. By default, this is in axes fraction coordinates. |
required |
y
|
float
|
The vertical position to place the text. By default, this is in axes fraction coordinates. |
required |
ha
|
str
|
Horizontal alignment. Must be one of |
'left'
|
va
|
str
|
Horizontal alignment. Must be one of |
'center'
|
ma
|
str
|
Alignment for multiline texts. The layout of the bounding box of all the lines is
determined by the |
'left'
|
mva
|
str
|
Vertical alignment for text within multiline texts. Can be one of |
'baseline'
|
xycoords
|
str
|
The coordinate system for |
'axes fraction'
|
ax
|
Axes
|
Matplotlib |
None
|
Returns:
Name | Type | Description |
---|---|---|
annotation_box |
AnnotationBbox
|
|
Source code in flexitext/flexitext.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
|