class_docstr: Graph drawer that uses a pyplot.Axes as context
class_docstr_tok: ["Graph","drawer","that","uses","a","pyplot.Axes","as","context"]
docstr: Constructs the graph drawer and associates it with the mpl Axes
  
  @param ax: the matplotlib Axes to draw into.
  @param vertex_drawer_factory: a factory method that returns an
      L{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 L{MatplotlibVertexDrawer}.
  @param edge_drawer_factory: a factory method that returns an
      L{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
      L{MatplotlibEdgeDrawer}.
docstr_tok: ["Constructs","the","graph","drawer","and","associates","it","with","the","mpl","Axes","@","param","ax",":","the","matplotlib","Axes","to","draw","into",".","@","param","vertex_drawer_factory",":","a","factory","method","that","returns","an","L","{","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","L","{","MatplotlibVertexDrawer","}",".","@","param","edge_drawer_factory",":","a","factory","method","that","returns","an","L","{","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","L","{","MatplotlibEdgeDrawer","}","."]
code: def __init__(
      self,
      ax,
      vertex_drawer_factory=MatplotlibVertexDrawer,
      edge_drawer_factory=MatplotlibEdgeDrawer,
  ):
      """Constructs the graph drawer and associates it with the mpl Axes
  
      @param ax: the matplotlib Axes to draw into.
      @param vertex_drawer_factory: a factory method that returns an
          L{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 L{MatplotlibVertexDrawer}.
      @param edge_drawer_factory: a factory method that returns an
          L{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
          L{MatplotlibEdgeDrawer}.
      """
      self.ax = ax
      self.vertex_drawer_factory = vertex_drawer_factory
      self.edge_drawer_factory = edge_drawer_factory
  
imports: from warnings import warn
  from functools import wraps, partial
  from igraph._igraph import convex_hull, VertexSeq
  from igraph.drawing.baseclasses import AbstractGraphDrawer
  from igraph.drawing.utils import FakeModule
  from .edge import MatplotlibEdgeDrawer, EdgeCollection
  from .polygon import HullCollection
  from .utils import find_matplotlib
  from .vertex import MatplotlibVertexDrawer, VertexCollection
label_desc: Use image node_id 1 to create a new MatplotlibGraphDrawer object from inherited base classes: AbstractGraphDrawer with example: obj = MatplotlibGraphDrawer(ax, vertex_drawer_factory, edge_drawer_factory)