matplotlib.artist

Inheritance diagram of 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.patches.FancyArrow, matplotlib.patches.FancyArrowPatch, matplotlib.patches.FancyBboxPatch, matplotlib.patches.Patch, matplotlib.patches.PathPatch, 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

Artist

class matplotlib.artist.Artist[源代码]

呈现为FigureCanvas的对象的抽象基类。

通常,一个图形中的所有可见元素都是Artist的子类。

互动式

Artist.add_callback 添加一个回调函数,当 Artist 的属性更改。
Artist.remove_callback 根据观察者id移除回调。
Artist.pchanged 调用所有已注册的回调。
Artist.get_cursor_data 返回游标的给定数据事件。
Artist.format_cursor_data 返回的字符串表示形式 data .
Artist.mouseover 如果此属性设置为 True ,则当鼠标光标移动到艺术家身上时,将查询该艺术家的自定义上下文信息。
Artist.contains 测试艺术家是否包含鼠标事件。
Artist.set_contains [Deprecated] 为艺术家定义自定义包含测试。
Artist.get_contains [Deprecated] 返回艺术家的自定义包含函数(如果设置),或 None .
Artist.pick 处理pick事件。
Artist.pickable 返回艺术家是否可选择。
Artist.set_picker 定义艺术家的采摘行为。
Artist.get_picker 返回艺术家的拾取行为。

剪辑

Artist.set_clip_on 设置艺术家是否使用剪辑。
Artist.get_clip_on 返回艺术家是否使用剪辑。
Artist.set_clip_box 设置艺术家的剪辑 Bbox .
Artist.get_clip_box 归还剪贴簿。
Artist.set_clip_path 设置艺术家的剪辑路径。
Artist.get_clip_path 返回剪辑路径。

体积特性

Artist.update 从dict更新此艺术家的属性 道具 .
Artist.update_from 从复制属性 其他self .
Artist.properties 返回艺术家所有属性的词典。
Artist.set 属性批处理设置程序。

绘图

Artist.draw 使用给定的渲染器绘制艺术家(及其子对象)。
Artist.set_animated 设置艺术家的动画状态。
Artist.get_animated 返回艺术家是否已设置动画。
Artist.set_alpha 设置用于混合的alpha值-不支持所有后端。
Artist.get_alpha 返回用于混合的alpha值-不支持所有后端。
Artist.set_snap 设置捕捉行为。
Artist.get_snap 返回捕捉设置。
Artist.set_visible 设置艺术家的可见性。
Artist.get_visible 返回可见性。
Artist.zorder
Artist.set_zorder 为艺术家设置Zorder。
Artist.get_zorder 返回艺术家的zorder。
Artist.set_agg_filter 设置agg过滤器。
Artist.set_sketch_params 设置草图参数。
Artist.get_sketch_params 返回艺术家的草图参数。
Artist.set_rasterized 在矢量后端输出中强制栅格化(位图)绘图。
Artist.get_rasterized 返回是否将艺术家栅格化。
Artist.set_path_effects 设置路径效果。
Artist.get_path_effects
Artist.get_agg_filter 返回用于agg筛选器的筛选器函数。
Artist.get_window_extent 获取显示空间中的轴边界框。
Artist.get_transformed_clip_path_and_affine 返回剪辑路径,并应用其转换的非仿射部分,以及其转换的剩余仿射部分。

图形与坐标轴

Artist.remove 如果可能的话,将艺术家从人物中移除。
Artist.axes 这个 Axes 艺术家居住的实例,或 None .
Artist.set_figure 设置 Figure 艺术家所属的实例。
Artist.get_figure 返回 Figure 艺术家所属的实例。

儿童

Artist.get_children 返回孩子的列表 Artist 这是什么 Artist .
Artist.findobj 查找艺术家对象。

变换

Artist.set_transform 设置艺术家变换。
Artist.get_transform 返回 Transform 此艺术家使用的实例。
Artist.is_transform_set 返回艺术家是否具有显式设置的变换。

单位

Artist.convert_xunits 转换 x 使用xaxis的单位类型。
Artist.convert_yunits 转换 y 使用yaxis的单位类型。
Artist.have_units 返回 True 如果在任何轴上设置了单位。

元数据

Artist.set_gid 设置艺术家的(组)id。
Artist.get_gid 返回组id。
Artist.set_label 设置将在图例中显示的标签。
Artist.get_label 返回图例中用于此艺术家的标签。
Artist.set_url 设置艺术家的url。
Artist.get_url 返回url。

其他

Artist.sticky_edges xy 用于自动缩放的粘性边缘列表。
Artist.set_in_layout 设置是否将艺术家包括在布局计算中,例如
Artist.get_in_layout 返回布尔标志, True 如果布局计算中包含艺术家。
Artist.stale 艺术家是否“过时”,是否需要重新绘制输出以匹配艺术家的内部状态。

功能

allow_rasterization Artist.Draw方法的装饰器。
get 返回对象的 属性 ,或全部打印。
getp 返回对象的 属性 ,或全部打印。
setp 在艺术家对象上设置属性。
kwdoc 检查一个 Artist 类(使用 ArtistInspector )并返回有关其可设置属性及其当前值的信息。
ArtistInspector 用于检查 Artist 并返回有关其可设置属性及其当前值的信息。