class_docstr: Matplotlib Exporter
  
  Parameters
  ----------
  renderer : Renderer object
      The renderer object called by the exporter to create a figure
      visualization.  See mplexporter.Renderer for information on the
      methods which should be defined within the renderer.
  close_mpl : bool
      If True (default), close the matplotlib figure as it is rendered. This
      is useful for when the exporter is used within the notebook, or with
      an interactive matplotlib backend.
class_docstr_tok: ["Matplotlib","Exporter","Parameters","--","--","--","--","--","renderer",":","Renderer","object","The","renderer","object","called","by","the","exporter","to","create","a","figure","visualization",".","See","mplexporter.Renderer","for","information","on","the","methods","which","should","be","defined","within","the","renderer",".","close_mpl",":","bool","If","True","(","default",")",",","close","the","matplotlib","figure","as","it","is","rendered",".","This","is","useful","for","when","the","exporter","is","used","within","the","notebook",",","or","with","an","interactive","matplotlib","backend","."]
docstr: Process a matplotlib patch object and call renderer.draw_path
docstr_tok: ["Process","a","matplotlib","patch","object","and","call","renderer.draw_path"]
code: def draw_patch(self, ax, patch, force_trans=None):
      """Process a matplotlib patch object and call renderer.draw_path"""
      vertices, pathcodes = utils.SVG_path(patch.get_path())
      transform = patch.get_transform()
      coordinates, vertices = self.process_transform(
          transform, ax, vertices, force_trans=force_trans
      )
      linestyle = utils.get_path_style(patch, fill=patch.get_fill())
      self.renderer.draw_path(
          data=vertices,
          coordinates=coordinates,
          pathcodes=pathcodes,
          style=linestyle,
          mplobj=patch,
      )
  
file_path: plotly.py/packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py
imports: import warnings
  import io
  from .None import utils
  import matplotlib
  from matplotlib import transforms
  from matplotlib.backends.backend_agg import FigureCanvasAgg
label_desc: Use image node_id 9 for calling the Exporter obj's underlying member method code with example usage: obj.draw_patch(ax, patch, force_trans) without return types