类文档
class 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 坐标,缩放到边界框中。 |