original_docstring:  Update the type of selected data.
  
          Parameters
          ----------
          selection: str
              The selection to update (as can exist in :attr:`_selections`)
          option: bool
              ``True`` if the selection should be included, ``False`` if it should be removed
          
docstring: Update the type of selected data.
  Parameters
  
  
docstring_tokens: Update the type of selected data . Parameters
code: def update_selections(self, selection, option):
          """ Update the type of selected data.
  
          Parameters
          ----------
          selection: str
              The selection to update (as can exist in :attr:`_selections`)
          option: bool
              ``True`` if the selection should be included, ``False`` if it should be removed
          """
          # TODO Somewhat hacky, to ensure values are inserted in the correct order. Fine for
          # now as this is only called from Live Graph and selections can only be "raw" and
          # smoothed.
          if option:
              if selection not in self._selections:
                  if selection == "raw":
                      self._selections.insert(0, selection)
                  else:
                      self._selections.append(selection)
          else:
              if selection in self._selections:
                  self._selections.remove(selection)
code_tokens: def update_selections ( self , selection , option ) : if option : if selection not in self . _selections : if selection == "raw" : self . _selections . insert ( 0 , selection ) else : self . _selections . append ( selection ) else : if selection in self . _selections : self . _selections . remove ( selection )
short_docstring: Update the type of selected data.
short_docstring_tokens: Update the type of selected data .
comment: """ Update the type of selected data.
  
          Parameters
          ----------
          selection: str
              The selection to update (as can exist in :attr:`_selections`)
          option: bool
              ``True`` if the selection should be included, ``False`` if it should be removed
          """$SEP$# TODO Somewhat hacky, to ensure values are inserted in the correct order. Fine for$SEP$# now as this is only called from Live Graph and selections can only be "raw" and$SEP$# smoothed.