Matplotlib Artist Axes

在简介里介绍了很多了,这里补充一点

Axes包含一个属性patch,是Axes对应的方框,可以用来设置Axes的相关属性

ax = fig.add_subplot()
rect = ax.patch  # a Rectangle instance
rect.set_facecolor('green')

Axes有以下方法 

Axes helper method

Artist

Container

annotate - text annotations

Annotation

ax.texts

bar - bar charts

Rectangle

ax.patches

errorbar - error bar plots

Line2D and Rectangle

ax.lines and ax.patches

fill - shared area

Polygon

ax.patches

hist - histograms

Rectangle

ax.patches

imshow - image data

AxesImage

ax.images

legend - Axes legend

Legend

ax.get_legend()

plot - xy plots

Line2D

ax.lines

scatter - scatter charts

PolyCollection

ax.collections

text - text

Text

ax.texts

Axes有以下属性

Axes attribute

Description

artists

An ArtistList of Artist instances

patch

Rectangle instance for Axes background

collections

An ArtistList of Collection instances

images

An ArtistList of AxesImage

lines

An ArtistList of Line2D instances

patches

An ArtistList of Patch instances

texts

An ArtistList of Text instances

xaxis

matplotlib.axis.XAxis instance

yaxis

matplotlib.axis.YAxis instance

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值