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 __init__(self, obj):
      super().__init__()
  
      if inst_has_typename(obj, ["matplotlib", "Figure"]):
          self._from_matplotlib_figure(obj)
      elif inst_has_typename(obj, ["plotly", "Figure", "BaseFigure"]):
          self._prepare(obj)
      else:
          raise TypeError("Object is not a Plotly Figure instance")
  
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 1 to create a new Figure object from inherited base classes: CustomObject with example: obj = Figure(obj)