# ``igraph`.`drawing`.`matplotlib`.`graph`.`MatplotlibGraphDrawer``

class documentation

`class MatplotlibGraphDrawer(AbstractGraphDrawer): (source)`

Constructor: `MatplotlibGraphDrawer(ax, vertex_drawer_factory, edge_drawer_factory)`

View In Hierarchy

Graph drawer that uses a pyplot.Axes as context

Method | `__init__` | Constructs the graph drawer and associates it with the mpl Axes
Method | `draw` | Abstract method, must be implemented in derived classes.
Instance Variable | `ax` | Undocumented
Instance Variable | `edge_drawer_factory` | Undocumented
Instance Variable | `vertex_drawer_factory` | Undocumented
Class Variable | `_shape_dict` | Undocumented

Inherited from `AbstractGraphDrawer`:

Static Method | `ensure_layout` | Helper method that ensures that layout is an instance of `Layout`. If it is not, the method will try to convert it to a `Layout` according to the following rules:
Static Method | `_determine_edge_order` | Returns the order in which the edge of the given graph have to be drawn, assuming that the relevant keyword arguments (`edge_order` and `edge_order_by`) are given in `kwds` as a dictionary. If neither `edge_order`...
Static Method | `_determine_vertex_order` | Returns the order in which the vertices of the given graph have to be drawn, assuming that the relevant keyword arguments (`vertex_order` and `vertex_order_by`) are given in `kwds` as a dictionary. If neither ...

def __init__(self, ax, vertex_drawer_factory=MatplotlibVertexDrawer, edge_drawer_factory=MatplotlibEdgeDrawer): (source)

Constructs the graph drawer and associates it with the mpl Axes

Parameters
ax | the matplotlib Axes to draw into.
vertex_drawer_factory | a factory method that returns an `AbstractVertexDrawer` instance bound to the given Matplotlib axes. The factory method must take three parameters: the axes and the palette to be used for drawing colored vertices, and the layout of the graph. The default vertex drawer is `MatplotlibVertexDrawer`.
edge_drawer_factory | a factory method that returns an `AbstractEdgeDrawer` instance bound to a given Matplotlib Axes. The factory method must take two parameters: the Axes and the palette to be used for drawing colored edges. The default edge drawer is `MatplotlibEdgeDrawer`.

def draw(self, graph, *args, **kwds): (source)
overrides `igraph.drawing.baseclasses.AbstractGraphDrawer.draw`

Abstract method, must be implemented in derived classes.

ax = (source)

Undocumented

edge_drawer_factory = (source)

Undocumented

vertex_drawer_factory = (source)

Undocumented

_shape_dict: `dict[str, str]` = (source)

Undocumented