class_docstr: Figure object can be used for storing Plotly or Matplotlib figures into Aim repository.
  Core functionality is based on Plotly.
  
  Args:
       obj (:obj:): plotly or matplotlib figure object.
class_docstr_tok: ["Figure","object","can","be","used","for","storing","Plotly","or","Matplotlib","figures","into","Aim","repository",".","Core","functionality","is","based","on","Plotly",".","Args",":","obj","(",":","obj",":",")",":","plotly","or","matplotlib","figure","object","."]
code: def to_plotly_figure(self):
      try:
          from plotly.io import from_json
      except ModuleNotFoundError:
          raise ModuleNotFoundError(
              "Could not find plotly in the installed modules."
          )
  
      return from_json(self.data)
  
file_path: aim/aim/sdk/objects/figure.py
imports: import logging
  from aim.sdk.num_utils import inst_has_typename
  from aim.storage.object import CustomObject
  from aim.storage.types import BLOB
label_desc: Use image node_id 6 for calling the Figure obj's underlying member method code with example usage: obj.to_plotly_figure() and returns: from_json