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
class_docstr_tok: ["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: Closes figure by cleaning up data and layout dictionaries.
  
  The PlotlyRenderer's job is to create an appropriate set of data and
  layout dictionaries. When the figure is closed, some cleanup and
  repair is necessary. This method removes inappropriate dictionary
  entries, freeing up Plotly to use defaults and best judgements to
  complete the entries. This method is called by an Exporter object.
  
  Positional arguments:
  fig -- a matplotlib.figure.Figure object.
docstr_tok: ["Closes","figure","by","cleaning","up","data","and","layout","dictionaries",".","The","PlotlyRenderer","'s","job","is","to","create","an","appropriate","set","of","data","and","layout","dictionaries",".","When","the","figure","is","closed",",","some","cleanup","and","repair","is","necessary",".","This","method","removes","inappropriate","dictionary","entries",",","freeing","up","Plotly","to","use","defaults","and","best","judgements","to","complete","the","entries",".","This","method","is","called","by","an","Exporter","object",".","Positional","arguments",":","fig","--","a","matplotlib.figure.Figure","object","."]
code: def close_figure(self, fig):
      """Closes figure by cleaning up data and layout dictionaries.
  
      The PlotlyRenderer's job is to create an appropriate set of data and
      layout dictionaries. When the figure is closed, some cleanup and
      repair is necessary. This method removes inappropriate dictionary
      entries, freeing up Plotly to use defaults and best judgements to
      complete the entries. This method is called by an Exporter object.
  
      Positional arguments:
      fig -- a matplotlib.figure.Figure object.
  
      """
      self.plotly_fig["layout"]["showlegend"] = False
      self.msg += "Closing figure\n"
  
imports: from __future__ import absolute_import
  import six
  import warnings
  import plotly.graph_objs
  from plotly.matplotlylib.mplexporter import Renderer
  from plotly.matplotlylib import mpltools
label_desc: Use image node_id 3 for calling the PlotlyRenderer obj's underlying member method code with example usage: obj.close_figure(fig) without return types