class_docstr: A renderer class inheriting from base for rendering mpl plots in plotly.
  
  A renderer class to be used with an exporter for rendering matplotlib
  plots in Plotly. This module defines the PlotlyRenderer class which handles
  the creation of the JSON structures that get sent to plotly.
  
  All class attributes available are defined in __init__().
  
  Basic Usage:
  
  # (mpl code) #
  fig = gcf()
  renderer = PlotlyRenderer(fig)
  exporter = Exporter(renderer)
  exporter.run(fig)  # ... et voila
docstr: Draw path, currently only attempts to draw bar charts.
  
  This function attempts to sort a given path into a collection of
  horizontal or vertical bar charts. Most of the actual code takes
  place in functions from mpltools.py.
  
  props.keys() -- [
  'data',         (a list of verticies for the path)
  'coordinates',  ('data', 'axes', 'figure', or 'display')
  'pathcodes',    (code for the path, structure: ['M', 'L', 'Z', etc.])
  'style',        (style dict, see below)
  'mplobj'        (the mpl path object)
  ]
  
  props['style'].keys() -- [
  'alpha',        (opacity of path obj)
  'edgecolor',
  'facecolor',
  'edgewidth',
  'dasharray',    (style for path's enclosing line)
  'zorder'        (precedence of obj when stacked)
  ]
docstr_tok: ["Draw","path",",","currently","only","attempts","to","draw","bar","charts",".","This","function","attempts","to","sort","a","given","path","into","a","collection","of","horizontal","or","vertical","bar","charts",".","Most","of","the","actual","code","takes","place","in","functions","from","mpltools.py",".","props.keys","(",")","--","[","'data","'",",","(","a","list","of","verticies","for","the","path",")","'coordinates","'",",","(","'data","'",",","'axes","'",",","'figure","'",",","or","'display","'",")","'pathcodes","'",",","(","code","for","the","path",",","structure",":","[","'M","'",",","'","L","'",",","'","Z","'",",","etc",".","]",")","'style","'",",","(","style","dict",",","see","below",")","'mplobj","'","(","the","mpl","path","object",")","]","props","[","'style","'","]",".keys","(",")","--","[","'alpha","'",",","(","opacity","of","path","obj",")","'edgecolor","'",",","'facecolor","'",",","'edgewidth","'",",","'dasharray","'",",","(","style","for","path","'s","enclosing","line",")","'zorder","'","(","precedence","of","obj","when","stacked",")","]"]
code: def draw_path(self, **props):
      """Draw path, currently only attempts to draw bar charts.
  
      This function attempts to sort a given path into a collection of
      horizontal or vertical bar charts. Most of the actual code takes
      place in functions from mpltools.py.
  
      props.keys() -- [
      'data',         (a list of verticies for the path)
      'coordinates',  ('data', 'axes', 'figure', or 'display')
      'pathcodes',    (code for the path, structure: ['M', 'L', 'Z', etc.])
      'style',        (style dict, see below)
      'mplobj'        (the mpl path object)
      ]
  
      props['style'].keys() -- [
      'alpha',        (opacity of path obj)
      'edgecolor',
      'facecolor',
      'edgewidth',
      'dasharray',    (style for path's enclosing line)
      'zorder'        (precedence of obj when stacked)
      ]
  
      """
      self.msg += "    Attempting to draw a path\n"
      is_bar = mpltools.is_bar(self.current_mpl_ax.containers, **props)
      if is_bar:
          self.current_bars += [props]
      elif mpltools.is_fancy_bbox(**props):
          self.current_bars += [props]
      else:
          self.msg += "    This path isn't a bar, not drawing\n"
          warnings.warn(
              "I found a path object that I don't think is part "
              "of a bar chart. Ignoring."
          )
  
imports: from __future__ import absolute_import
  import six
  import warnings
  from .mplexporter import Renderer
  from .None import mpltools
label_desc: Use image node_id 11 for calling the PlotlyRenderer obj's underlying member method code with example usage: obj.draw_path() without return types