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
code: def draw_bars(self, bars):
      # sort bars according to bar containers
      mpl_traces = []
      for container in self.bar_containers:
          mpl_traces.append(
              [
                  bar_props
                  for bar_props in self.current_bars
                  if bar_props["mplobj"] in container
              ]
          )
      for trace in mpl_traces:
          self.draw_bar(trace)
  
imports: import warnings
  import plotly.graph_objs
  from plotly.matplotlylib.mplexporter import Renderer
  from plotly.matplotlylib import mpltools
label_desc: Use image node_id 6 for calling the PlotlyRenderer obj's underlying member method code with example usage: obj.draw_bars(bars) without return types