matplotlib.artist
#
继承图#
![matplotlib.axes._axes.Axes、matplotlib.axes._base._AxesBase、matplotlib.axis.Axis、matplotlib.axis.Tick、matplotlib.axis.XAxis、matplotlib.axis.XTick、matplotlib.axis.YAxis、matplotlib的继承图.axis.YTick,matplotlib.collections.AsteriskPolygonCollection,matplotlib.collections.BrokenBarHCollection,matplotlib.collections.CircleCollection,matplotlib.collections.Collection,matplotlib.collections.EllipseCollection,matplotlib.collections.EventCollection,matplotlib.collections.LineCollection,matplotlib.collections .PatchCollection,matplotlib.collections.PathCollection,matplotlib.collections.PolyCollection,matplotlib.collections.QuadMesh,matplotlib.collections.RegularPolyCollection,matplotlib.collections.StarPolygonCollection,matplotlib.collections.TriMesh,matplotlib.collections._CollectionWithSizes,matplotlib.contour。ClabelText,matplotlib.figure.Figure,matplotlib.image.AxesImage,matplotlib.image.BboxImage,matplotlib.image.FigureImage,matplotlib.image.NonUniformImage,matplotlib.image.PcolorImage,matplotlib.image._ImageBase,matplotlib.legend.Legend, matplotlib.lines.Line2D,matplotlib.offsetbox.AnchoredOffsetbox,matplotlib.offsetbox.AnchoredText,matplotlib.offsetbox.AnnotationBbox,matplotlib.offsetbox.AuxTransformBox,matplotlib.offsetbox.DrawingArea,matplotlib.offsetbox.HPacker,matplotlib.offsetbox.OffsetBox,matplotlib。 offsetbox.OffsetImage、matplotlib.offsetbox.PackerBase、matplotlib.offsetbox.PaddedBox、matplotlib.offsetbox.TextArea、matplotlib.offsetbox.VPacker、matplotlib.patches.Arc、matplotlib.patches.Arrow、matplotlib.patches.Circle、matplotlib.patches。 CirclePolygon、matplotlib.patches.ConnectionPatch、matplotlib.patches.Ellipse、matplotlib。补丁.FancyArrow,matplotlib.patches.FancyArrowPatch,matplotlib.patches.FancyBboxPatch,matplotlib.patches.Patch,matplotlib.patches.PathPatch,matplotlib.patches.StepPatch,matplotlib.patches.Polygon,matplotlib.patches.Rectangle,matplotlib.patches。 RegularPolygon,matplotlib.patches.Shadow,matplotlib.patches.Wedge,matplotlib.projections.geo.AitoffAxes,matplotlib.projections.geo.GeoAxes,matplotlib.projections.geo.HammerAxes,matplotlib.projections.geo.LambertAxes,matplotlib.projections。 geo.MollweideAxes,matplotlib.projections.polar.PolarAxes,matplotlib.quiver.Barbs,matplotlib.quiver.Quiver,matplotlib.quiver.QuiverKey,matplotlib.spines.Spine,matplotlib.table.Cell,matplotlib.table.CustomCell,matplotlib。 table.Table,matplotlib.text.Annotation,matplotlib.text.Text补丁.FancyBboxPatch,matplotlib.patches.Patch,matplotlib.patches.PathPatch,matplotlib.patches.StepPatch,matplotlib.patches.Polygon,matplotlib.patches.Rectangle,matplotlib.patches.RegularPolygon,matplotlib.patches.Shadow,matplotlib.patches。楔形,matplotlib.projections.geo.AitoffAxes,matplotlib.projections.geo.GeoAxes,matplotlib.projections.geo.HammerAxes,matplotlib.projections.geo.LambertAxes,matplotlib.projections.geo.MollweideAxes,matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs、matplotlib.quiver.Quiver、matplotlib.quiver.QuiverKey、matplotlib.spines.Spine、matplotlib.table.Cell、matplotlib.table.CustomCell、matplotlib.table.Table、matplotlib.text.Annotation、matplotlib。文本.文本补丁.FancyBboxPatch,matplotlib.patches.Patch,matplotlib.patches.PathPatch,matplotlib.patches.StepPatch,matplotlib.patches.Polygon,matplotlib.patches.Rectangle,matplotlib.patches.RegularPolygon,matplotlib.patches.Shadow,matplotlib.patches。楔形,matplotlib.projections.geo.AitoffAxes,matplotlib.projections.geo.GeoAxes,matplotlib.projections.geo.HammerAxes,matplotlib.projections.geo.LambertAxes,matplotlib.projections.geo.MollweideAxes,matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs、matplotlib.quiver.Quiver、matplotlib.quiver.QuiverKey、matplotlib.spines.Spine、matplotlib.table.Cell、matplotlib.table.CustomCell、matplotlib.table.Table、matplotlib.text.Annotation、matplotlib。文本.文本matplotlib.patches.Rectangle、matplotlib.patches.RegularPolygon、matplotlib.patches.Shadow、matplotlib.patches.Wedge、matplotlib.projections.geo.AitoffAxes、matplotlib.projections.geo.GeoAxes、matplotlib.projections.geo.HammerAxes、matplotlib。 projections.geo.LambertAxes,matplotlib.projections.geo.MollweideAxes,matplotlib.projections.polar.PolarAxes,matplotlib.quiver.Barbs,matplotlib.quiver.Quiver,matplotlib.quiver.QuiverKey,matplotlib.spines.Spine,matplotlib.table。单元格,matplotlib.table.CustomCell,matplotlib.table.Table,matplotlib.text.Annotation,matplotlib.text.Textmatplotlib.patches.Rectangle、matplotlib.patches.RegularPolygon、matplotlib.patches.Shadow、matplotlib.patches.Wedge、matplotlib.projections.geo.AitoffAxes、matplotlib.projections.geo.GeoAxes、matplotlib.projections.geo.HammerAxes、matplotlib。 projections.geo.LambertAxes,matplotlib.projections.geo.MollweideAxes,matplotlib.projections.polar.PolarAxes,matplotlib.quiver.Barbs,matplotlib.quiver.Quiver,matplotlib.quiver.QuiverKey,matplotlib.spines.Spine,matplotlib.table。单元格,matplotlib.table.CustomCell,matplotlib.table.Table,matplotlib.text.Annotation,matplotlib.text.Textmatplotlib.projections.geo.MollweideAxes,matplotlib.projections.polar.PolarAxes,matplotlib.quiver.Barbs,matplotlib.quiver.Quiver,matplotlib.quiver.QuiverKey,matplotlib.spines.Spine,matplotlib.table.Cell,matplotlib.table。 CustomCell、matplotlib.table.Table、matplotlib.text.Annotation、matplotlib.text.Textmatplotlib.projections.geo.MollweideAxes,matplotlib.projections.polar.PolarAxes,matplotlib.quiver.Barbs,matplotlib.quiver.Quiver,matplotlib.quiver.QuiverKey,matplotlib.spines.Spine,matplotlib.table.Cell,matplotlib.table。 CustomCell、matplotlib.table.Table、matplotlib.text.Annotation、matplotlib.text.Text](/stable/_images/inheritance-7345c0ddb5186802e9fa7f2fb57416ac6be9621b.png)
Artist
班级#
互动#
|
|
根据观察者 ID 移除回调。 |
|
调用所有注册的回调。 |
|
返回给定事件的光标数据。 |
|
返回data的字符串表示形式。 |
|
设置当鼠标光标移到该艺术家上时是否向其查询自定义上下文信息。 |
|
返回当鼠标光标移动到该艺术家上时是否向其查询自定义上下文信息。 |
|
返回当鼠标光标移动到该艺术家上时是否向其查询自定义上下文信息。 |
|
测试艺术家是否包含鼠标事件。 |
|
处理挑选事件。 |
|
返回艺术家是否可挑选。 |
|
定义艺术家的采摘行为。 |
|
返回艺术家的采摘行为。 |
剪辑#
设置艺术家是否使用剪辑。 |
|
返回艺术家是否使用剪辑。 |
|
设置艺术家的剪辑 |
|
返回剪贴箱。 |
|
设置艺术家的剪辑路径。 |
|
返回剪辑路径。 |
批量属性#
从 dict props更新此艺术家的属性。 |
|
将属性从other复制到self。 |
|
返回艺术家所有属性的字典。 |
|
一次设置多个属性。 |
绘图#
使用给定的渲染器绘制艺术家(及其子级)。 |
|
设置艺术家是否打算在动画中使用。 |
|
返回艺术家是否是动画的。 |
|
设置用于混合的 alpha 值 - 并非所有后端都支持。 |
|
返回用于混合的 alpha 值 - 并非所有后端都支持。 |
|
设置捕捉行为。 |
|
返回捕捉设置。 |
|
设置艺术家的可见性。 |
|
返回可见性。 |
|
为艺术家设置 zorder。 |
|
归还艺术家的 zorder。 |
|
设置聚合过滤器。 |
|
设置草图参数。 |
|
返回艺术家的草图参数。 |
|
强制进行矢量图形输出的光栅化(位图)绘图。 |
|
返回艺术家是否要被光栅化。 |
|
设置路径效果。 |
|
返回用于 agg 过滤器的过滤器函数。 |
|
在显示空间中获取艺术家的边界框。 |
|
喜欢 |
|
返回应用了其变换的非仿射部分和其变换的剩余仿射部分的剪辑路径。 |
图和轴#
如果可能,将艺术家从图中移除。 |
|
|
|
设置 |
|
返回 |
儿童#
查找艺术家对象。 |
变换#
设置艺术家变换。 |
|
返回 |
|
返回 Artist 是否有明确设置的变换。 |
单位#
使用 xaxis 的单位类型转换x 。 |
|
使用 y 轴的单位类型转换y 。 |
|
返回是否在任何轴上设置单位。 |
元数据#
设置艺术家的(组)ID。 |
|
返回组 ID。 |
|
设置将在图例中显示的标签。 |
|
返回图例中用于此艺术家的标签。 |
|
设置艺术家的网址。 |
|
返回网址。 |
杂项#
|
|
设置艺术家是否包含在布局计算中,例如 |
|
|
|
艺术家是否“过时”并且需要重新绘制输出以匹配艺术家的内部状态。 |
功能#
Artist.draw 方法的装饰器。 |
|
返回一个 |
|
返回一个 |
|
设置一个或多个属性 |
|
检查一个 |
|
一个帮助类,用于检查 |