class_docstr: Organize Renderers for ``pyvista.Plotter``.
  
  Parameters
  ----------
  plotter : str
      The PyVista plotter.
  
  shape : tuple[int], optional
      The initial shape of the PyVista plotter, (rows, columns).
  
  splitting_position : float, optional
      The position to place the splitting line between plots.
  
  row_weights : sequence, optional
      The weights of the rows when the plot window is resized.
  
  col_weights : sequence, optional
      The weights of the columns when the plot window is resized.
  
  groups : list, optional
      A list of sequences that defines the grouping of the sub-datasets.
  
  border : bool, optional
      Whether or not a border should be added around each subplot.
  
  border_color : str, optional
      The color of the border around each subplot.
  
  border_width : float, optional
      The width of the border around each subplot.
class_docstr_tok: ["Organize","Renderers","for","``","pyvista.Plotter","``",".","Parameters","--","--","--","--","--","plotter",":","str","The","PyVista","plotter",".","shape",":","tuple","[","int","]",",","optional","The","initial","shape","of","the","PyVista","plotter",",","(","rows",",","columns",")",".","splitting_position",":","float",",","optional","The","position","to","place","the","splitting","line","between","plots",".","row_weights",":","sequence",",","optional","The","weights","of","the","rows","when","the","plot","window","is","resized",".","col_weights",":","sequence",",","optional","The","weights","of","the","columns","when","the","plot","window","is","resized",".","groups",":","list",",","optional","A","list","of","sequences","that","defines","the","grouping","of","the","sub-datasets",".","border",":","bool",",","optional","Whether","or","not","a","border","should","be","added","around","each","subplot",".","border_color",":","str",",","optional","The","color","of","the","border","around","each","subplot",".","border_width",":","float",",","optional","The","width","of","the","border","around","each","subplot","."]
docstr: Return index of the render window given a location index.
  
  Parameters
  ----------
  loc : int | sequence[int]
      Index of the renderer to add the actor to.  For example, ``loc=2``
      or ``loc=(1, 1)``.
  
  Returns
  -------
  int
      Index of the render window.
docstr_tok: ["Return","index","of","the","render","window","given","a","location","index",".","Parameters","--","--","--","--","--","loc",":","int","|","sequence","[","int","]","Index","of","the","renderer","to","add","the","actor","to",".","For","example",",","``","loc=2","``","or","``","loc=","(","1",",","1",")","``",".","Returns","--","--","--","-","int","Index","of","the","render","window","."]
code: def loc_to_group(self, loc):
      """Return index of the render window given a location index.
  
      Parameters
      ----------
      loc : int | sequence[int]
          Index of the renderer to add the actor to.  For example, ``loc=2``
          or ``loc=(1, 1)``.
  
      Returns
      -------
      int
          Index of the render window.
      """
      group_idxs = np.arange(self.groups.shape[0])
      index = (
          (loc[0] >= self.groups[:, 0])
          & (loc[0] <= self.groups[:, 2])
          & (loc[1] >= self.groups[:, 1])
          & (loc[1] <= self.groups[:, 3])
      )
      group = group_idxs[index]
      return None if group.size == 0 else group[0]
  
imports: import collections
  from itertools import product
  from weakref import proxy
  import numpy
  import pyvista
  from .background_renderer import BackgroundRenderer
  from .renderer import Renderer
label_desc: Use image node_id 2 for calling the Renderers obj's underlying member method code with example usage: obj.loc_to_group(loc) and returns: unknown