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: Set or toggle interaction with charts for the active renderer.
  
  Interaction with other charts in other renderers is disabled.
  Interaction with other charts in the active renderer is only disabled
  when ``toggle`` is ``False``.
  
  Parameters
  ----------
  interactive : bool | Chart | int | sequence[Chart] | sequence[int]
      Following parameter values are accepted:
  
      * A boolean to enable (``True``) or disable (``False``) interaction
        with all charts in the active renderer.
      * The chart or its index to enable interaction with. Interaction
        with multiple charts can be enabled by passing a list of charts
        or indices.
  
  toggle : bool, default: False
      Instead of enabling interaction with the provided chart(s), interaction
      with the provided chart(s) is toggled. Only applicable when ``interactive``
      is not a boolean.
  
  Returns
  -------
  list of Chart
      The list of all interactive charts for the active renderer.
docstr_tok: ["Set","or","toggle","interaction","with","charts","for","the","active","renderer",".","Interaction","with","other","charts","in","other","renderers","is","disabled",".","Interaction","with","other","charts","in","the","active","renderer","is","only","disabled","when","``","toggle","``","is","``","False","``",".","Parameters","--","--","--","--","--","interactive",":","bool","|","Chart","|","int","|","sequence","[","Chart","]","|","sequence","[","int","]","Following","parameter","values","are","accepted",":","*","A","boolean","to","enable","(","``","True","``",")","or","disable","(","``","False","``",")","interaction","with","all","charts","in","the","active","renderer",".","*","The","chart","or","its","index","to","enable","interaction","with",".","Interaction","with","multiple","charts","can","be","enabled","by","passing","a","list","of","charts","or","indices",".","toggle",":","bool",",","default",":","False","Instead","of","enabling","interaction","with","the","provided","chart","(","s",")",",","interaction","with","the","provided","chart","(","s",")","is","toggled",".","Only","applicable","when","``","interactive","``","is","not","a","boolean",".","Returns","--","--","--","-","list","of","Chart","The","list","of","all","interactive","charts","for","the","active","renderer","."]
code: def set_chart_interaction(self, interactive, toggle=False):
      """
      Set or toggle interaction with charts for the active renderer.
  
      Interaction with other charts in other renderers is disabled.
      Interaction with other charts in the active renderer is only disabled
      when ``toggle`` is ``False``.
  
      Parameters
      ----------
      interactive : bool | Chart | int | sequence[Chart] | sequence[int]
          Following parameter values are accepted:
  
          * A boolean to enable (``True``) or disable (``False``) interaction
            with all charts in the active renderer.
          * The chart or its index to enable interaction with. Interaction
            with multiple charts can be enabled by passing a list of charts
            or indices.
  
      toggle : bool, default: False
          Instead of enabling interaction with the provided chart(s), interaction
          with the provided chart(s) is toggled. Only applicable when ``interactive``
          is not a boolean.
  
      Returns
      -------
      list of Chart
          The list of all interactive charts for the active renderer.
  
      """
      interactive_scene, interactive_charts = None, []
      if self.active_renderer.has_charts:
          interactive_scene = self.active_renderer._charts._scene
          interactive_charts = (
              self.active_renderer.set_chart_interaction(
                  interactive, toggle
              )
          )
      # Disable chart interaction for other renderers
      for renderer in self:
          if renderer is not self.active_renderer:
              renderer.set_chart_interaction(False)
      # Setup the context interactor style based on the resulting amount of interactive charts.
      self._plotter.iren._set_context_style(
          interactive_scene if interactive_charts else None
      )
      return interactive_charts
  
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 12 for calling the Renderers obj's underlying member method code with example usage: obj.set_chart_interaction(interactive, toggle) and returns: interactive_charts