class_docstr: Create a figure window
  
  Parameters
  ----------
  bgcolor : instance of Color
      Color to use for the background.
  size : tuple
      Size of the figure window in pixels.
  show : bool
      If True, show the window.
  **kwargs : dict
      Keywoard arguments to pass to `SceneCanvas` base class.
  
  Notes
  -----
  You can create a Figure, PlotWidget, and diagonal line plot like this::
  
      >>> from vispy.plot import Fig
      >>> fig = Fig()
      >>> ax = fig[0, 0]  # this creates a PlotWidget
      >>> ax.plot([[0, 1], [1, 0]])
  
  See the gallery for many other examples.
  
  See Also
  --------
  PlotWidget : the axis widget for plotting
  SceneCanvas : the super class
code: def __init__(
      self,
      bgcolor="w",
      size=(800, 600),
      show=True,
      keys="interactive",
      **kwargs,
  ):
      self._plot_widgets = []
      self._grid = None  # initialize before the freeze occurs
      super(Fig, self).__init__(
          bgcolor=bgcolor, keys=keys, show=show, size=size, **kwargs
      )
      self._grid = self.central_widget.add_grid()
      self._grid._default_class = PlotWidget
  
imports: from ..scene import SceneCanvas
  from .plotwidget import PlotWidget
label_desc: Use image node_id 1 to create a new Fig object from inherited base classes: SceneCanvas with example: obj = Fig(bgcolor, size, show, keys)