matplotlib.axes.Axes.add_artist#
- Axes.add_artist(a)[源代码]#
将一个
Artist添加到坐标系中;并返回该 artist。仅当没有专门的“添加”方法时,才使用
add_artist来添加 artist;如果需要将 artist 包含在自动缩放中,则如有必要,请使用诸如update_datalim之类的方法手动更新dataLim。如果在创建 artist 时没有指定
transform(例如artist.get_transform() == None),则该变换将设置为ax.transData。