class_docstr: Plot a group of elements in a grid layout based on a GridSpace element
  object.
class_docstr_tok: ["Plot","a","group","of","elements","in","a","grid","layout","based","on","a","GridSpace","element","object","."]
code: def initialize_plot(self, ranges=None, plots=None):
      if plots is None:
          plots = []
      ranges = self.compute_ranges(self.layout, self.keys[-1], None)
      passed_plots = list(plots)
      plots = [
          [None for c in range(self.cols)] for r in range(self.rows)
      ]
      for i, coord in enumerate(self.layout.keys(full_grid=True)):
          r = i % self.rows
          c = i // self.rows
          subplot = self.subplots.get(wrap_tuple(coord), None)
          if subplot is not None:
              plot = subplot.initialize_plot(
                  ranges=ranges, plots=passed_plots
              )
              plots[r][c] = plot
              passed_plots.append(plot)
          else:
              passed_plots.append(None)
  
      plot = gridplot(
          plots[::-1],
          merge_tools=False,
          sizing_mode=self.sizing_mode,
          toolbar_location=self.toolbar,
      )
      if self.sync_legends:
          sync_legends(plot)
      plot = self._make_axes(plot)
      if hasattr(plot, "toolbar") and self.merge_tools:
          plot.toolbar = merge_tools(plots)
  
      title = self._get_title_div(self.keys[-1])
      if title:
          plot = Column(title, plot)
          self.handles["title"] = title
  
      self.handles["plot"] = plot
      self.handles["plots"] = plots
  
      if self.shared_datasource:
          self.sync_sources()
  
      if self.top_level:
          self.init_links()
  
      self.drawn = True
  
      return self.handles["plot"]
  
imports: from collections import defaultdict
  from itertools import groupby
  import numpy
  import param
  from bokeh.layouts import gridplot
  from bokeh.models import Axis, ColorBar, Column, ColumnDataSource, Div, Legend, Row, Title
  from bokeh.models.layouts import TabPanel, Tabs
  from ...core import AdjointLayout, Element, Empty, GridSpace, HoloMap, Layout, NdLayout, Store
  from ...core.options import SkipRendering
  from ...core.util import _STANDARD_CALENDARS, cftime_to_timestamp, cftime_types, get_method_owner, is_param_method, unique_iterator, wrap_tuple, wrap_tuple_streams
  from ...selection import NoOpSelectionDisplay
  from ..links import Link
  from ..plot import CallbackPlot, DimensionedPlot, GenericAdjointLayoutPlot, GenericCompositePlot, GenericElementPlot, GenericLayoutPlot, GenericOverlayPlot
  from ..util import attach_streams, collate, displayable
  from .links import LinkCallback
  from .util import cds_column_replace, decode_bytes, empty_plot, filter_toolboxes, get_default, make_axis, merge_tools, select_legends, sync_legends, theme_attr_json, update_shared_sources
label_desc: Use image node_id 3 for calling the GridPlot obj's underlying member method code with example usage: obj.initialize_plot(ranges, plots) and returns: self