matplotlib.text.Text

宇文嘉勋
2023-12-01

http://matplotlib.org/api/text_api.html#matplotlib.text.Text

xticks/yticks等都继承与text类

class matplotlib.text.Text(x=0, y=0, text='', color=None, verticalalignment='baseline', horizontalalignment='left', multialignment=None, fontproperties=None, rotation=None, linespacing=None, rotation_mode=None, usetex=None, wrap=False, **kwargs)
PropertyDescription描述
agg_filterunknown
alphafloat (0.0 transparent through 1.0 opaque)
animated[True | False]
axesan Axes instance
backgroundcolorany matplotlib color
bboxFancyBboxPatch prop dict
clip_boxa matplotlib.transforms.Bbox instance
clip_on[True | False]
clip_path[ (Path, Transform) | Patch | None ]
colorany matplotlib color
containsa callable function
family or fontfamily or fontname or name[FONTNAME | ‘serif’ | ‘sans-serif’ | ‘cursive’ | ‘fantasy’ | ‘monospace’ ]
figurea matplotlib.figure.Figure instance
fontproperties or font_propertiesa matplotlib.font_manager.FontProperties instance
gidan id string
horizontalalignment or ha[ ‘center’ | ‘right’ | ‘left’ ]
labelstring or anything printable with ‘%s’ conversion.
linespacingfloat (multiple of font size)
multialignment[‘left’ | ‘right’ | ‘center’ ]
path_effectsunknown
picker[None|float|boolean|callable]
position(x,y)设置位置
rasterized[True | False | None]
rotation[ angle in degrees | ‘vertical’ | ‘horizontal’ ]设置旋转
rotation_modeunknown
size or fontsize[size in points | ‘xx-small’ | ‘x-small’ | ‘small’ | ‘medium’ | ‘large’ | ‘x-large’ | ‘xx-large’ ]
sketch_paramsunknown
snapunknown
stretch or fontstretch[a numeric value in range 0-1000 | ‘ultra-condensed’ | ‘extra-condensed’ | ‘condensed’ | ‘semi-condensed’ | ‘normal’ | ‘semi-expanded’ | ‘expanded’ | ‘extra-expanded’ | ‘ultra-expanded’ ]
style or fontstyle[ ‘normal’ | ‘italic’ | ‘oblique’]
textstring or anything printable with ‘%s’ conversion.
transformTransform instance
urla url string
usetexunknown
variant or fontvariant[ ‘normal’ | ‘small-caps’ ]
verticalalignment or ma or va[ ‘center’ | ‘top’ | ‘bottom’ | ‘baseline’ ]
visible[True | False]
weight or fontweight[a numeric value in range 0-1000 | ‘ultralight’ | ‘light’ | ‘normal’ | ‘regular’ | ‘book’ | ‘medium’ | ‘roman’ | ‘semibold’ | ‘demibold’ | ‘demi’ | ‘bold’ | ‘heavy’ | ‘extra bold’ | ‘black’ ]
wrapunknown
xfloat
yfloat
zorderany number
 类似资料:

相关阅读

相关文章

相关问答