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: Initialize PlotlyRenderer obj.
  
  PlotlyRenderer obj is called on by an Exporter object to draw
  matplotlib objects like figures, axes, text, etc.
  
  All class attributes are listed here in the __init__ method.
docstr_tok: ["Initialize","PlotlyRenderer","obj",".","PlotlyRenderer","obj","is","called","on","by","an","Exporter","object","to","draw","matplotlib","objects","like","figures",",","axes",",","text",",","etc",".","All","class","attributes","are","listed","here","in","the","__init__","method","."]
code: def __init__(self):
      """Initialize PlotlyRenderer obj.
  
      PlotlyRenderer obj is called on by an Exporter object to draw
      matplotlib objects like figures, axes, text, etc.
  
      All class attributes are listed here in the __init__ method.
  
      """
      self.plotly_fig = go.Figure()
      self.mpl_fig = None
      self.current_mpl_ax = None
      self.bar_containers = None
      self.current_bars = []
      self.axis_ct = 0
      self.x_is_mpl_date = False
      self.mpl_x_bounds = (0, 1)
      self.mpl_y_bounds = (0, 1)
      self.msg = "Initialized PlotlyRenderer\n"
  
imports: import warnings
  import plotly.graph_objs
  from plotly.matplotlylib.mplexporter import Renderer
  from plotly.matplotlylib import mpltools
label_desc: Use image node_id 1 to create a new PlotlyRenderer object from inherited base classes: Renderer with example: obj = PlotlyRenderer()