matplotlib.artist.Artist.set_clip_box#

Artist.set_clip_box(clipbox)[源代码][源代码]#

设置艺术家的剪辑 Bbox

参数:
clipbox : BboxBase 或 NoneBboxBase 或 None

通常由 TransformedBbox 创建。例如,TransformedBbox(Bbox([[0, 0], [1, 1]]), ax.transAxes) 是添加到 Axes 的艺术家默认的裁剪。

使用 matplotlib.artist.Artist.set_clip_box 的示例#

标注图表

Annotate plots

椭圆演示

Ellipse Demo