类文档
类 AbstractVertexDrawer(AbstractDrawer): (源)
已知子类: igraph.drawing.cairo.vertex.AbstractCairoVertexDrawer
, igraph.drawing.matplotlib.vertex.MatplotlibVertexDrawer
, igraph.drawing.plotly.vertex.PlotlyVerticesDrawer
一个抽象的顶点绘制器对象,所有具体的顶点绘制器实现都派生自它。
在以下类中被覆盖:
igraph.drawing.cairo.vertex.AbstractCairoVertexDrawer
, igraph.drawing.matplotlib.vertex.MatplotlibVertexDrawer
, igraph.drawing.plotly.vertex.PlotlyVerticesDrawer
构造顶点绘制器并将其与给定调色板关联。
参数 | |
palette | 当绘制顶点时,可用于将整数颜色索引映射到颜色的调色板 |
layout | 所绘制图中顶点的布局 |
在以下类中被覆盖:
igraph.drawing.cairo.vertex.CairoVertexDrawer
, igraph.drawing.matplotlib.vertex.MatplotlibVertexDrawer
, igraph.drawing.plotly.vertex.PlotlyVerticesDrawer
绘制给定的顶点。
参数 | |
visual | 一个对象,指定顶点的视觉属性。其结构由 CairoGraphDrawer 的 VisualVertexBuilder 定义;请参阅其源代码。 |
vertex | 正在绘制的原始 igraph 顶点 |
coords | 由布局算法指定并按比例缩放至边界框内的顶点的 X 和 Y 坐标。 |