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: Revert figure layout to allow plotly to resize.
  
  By default, PlotlyRenderer tries its hardest to precisely mimic an
  mpl figure. However, plotly is pretty good with aesthetics. By
  running PlotlyRenderer.resize(), layout parameters are deleted. This
  lets plotly choose them instead of mpl.
docstr_tok: ["Revert","figure","layout","to","allow","plotly","to","resize",".","By","default",",","PlotlyRenderer","tries","its","hardest","to","precisely","mimic","an","mpl","figure",".","However",",","plotly","is","pretty","good","with","aesthetics",".","By","running","PlotlyRenderer.resize","(",")",",","layout","parameters","are","deleted",".","This","lets","plotly","choose","them","instead","of","mpl","."]
code: def resize(self):
      """Revert figure layout to allow plotly to resize.
  
      By default, PlotlyRenderer tries its hardest to precisely mimic an
      mpl figure. However, plotly is pretty good with aesthetics. By
      running PlotlyRenderer.resize(), layout parameters are deleted. This
      lets plotly choose them instead of mpl.
  
      """
      self.msg += "Resizing figure, deleting keys from layout\n"
      for key in ["width", "height", "autosize", "margin"]:
          try:
              del self.plotly_fig["layout"][key]
          except (KeyError, AttributeError):
              pass
  
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 16 for calling the PlotlyRenderer obj's underlying member method code with example usage: obj.resize() without return types