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: Close the axes object and clean up.
  
  Bars from bar charts are given to PlotlyRenderer one-by-one,
  thus they need to be taken care of at the close of each axes object.
  The self.current_bars variable should be empty unless a bar
  chart has been created.
  
  Positional arguments:
  ax -- an mpl axes object, not required at this time.
docstr_tok: ["Close","the","axes","object","and","clean","up",".","Bars","from","bar","charts","are","given","to","PlotlyRenderer","one-by-one",",","thus","they","need","to","be","taken","care","of","at","the","close","of","each","axes","object",".","The","self.current_bars","variable","should","be","empty","unless","a","bar","chart","has","been","created",".","Positional","arguments",":","ax","--","an","mpl","axes","object",",","not","required","at","this","time","."]
code: def close_axes(self, ax):
      """Close the axes object and clean up.
  
      Bars from bar charts are given to PlotlyRenderer one-by-one,
      thus they need to be taken care of at the close of each axes object.
      The self.current_bars variable should be empty unless a bar
      chart has been created.
  
      Positional arguments:
      ax -- an mpl axes object, not required at this time.
  
      """
      self.draw_bars(self.current_bars)
      self.msg += "  Closing axes\n"
      self.x_is_mpl_date = False
  
imports: import warnings
  import plotly.graph_objs
  from plotly.matplotlylib.mplexporter import Renderer
  from plotly.matplotlylib import mpltools
label_desc: Use image node_id 5 for calling the PlotlyRenderer obj's underlying member method code with example usage: obj.close_axes(ax) without return types