matplotlib.text.Text

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值