class_docstr: Figure widget
  
  This is the base widget for a Figure. Prefer instantiating
  instances of ``Figure`` using the :func:`gmaps.figure`
  factory method.
class_docstr_tok: ["Figure","widget","This","is","the","base","widget","for","a","Figure",".","Prefer","instantiating","instances","of","``","Figure","``","using","the",":","func",":","`","gmaps.figure","`","factory","method","."]
code: def __init__(self, *args, **kwargs):
      if kwargs.get("layout") is None:
          kwargs["layout"] = self._default_layout()
      super(Figure, self).__init__(*args, **kwargs)
      self._map.map_type = self.map_type
      link((self._map, "map_type"), (self, "map_type"))
  
      self._map.tilt = self.tilt
      link((self._map, "tilt"), (self, "tilt"))
  
      self._map.mouse_handling = self.mouse_handling
      link((self._map, "mouse_handling"), (self, "mouse_handling"))
  
file_path: gmaps/gmaps/figure.py
imports: import ipywidgets
  from traitlets import Unicode, Instance, default, link
  from .maps import Map, InitialViewport, GMapsWidgetMixin, map_params_doc_snippets
  from .geotraitlets import MapType, MouseHandling, Tilt
  from .toolbar import Toolbar
  from .errors_box import ErrorsBox
  from ._docutils import doc_subst
label_desc: Use image node_id 1 to create a new Figure object from inherited base classes: GMapsWidgetMixin, widgets with example: obj = Figure()