parameters: (self, workspace)
return_statement: return True
docstring: Replace the data of any artists relating to this workspace.
          The axes are NOT redrawn
          :param workspace: The workspace containing the new data
          :return : True if data was replaced, false otherwise
docstring_summary: Replace the data of any artists relating to this workspace.
          The axes are NOT redrawn
          :param workspace: The workspace containing the new data
          :return : True if data was replaced, false otherwise
docstring_tokens: Replace the data of any artists relating to this workspace . The axes are NOT redrawn : param workspace : The workspace containing the new data : return : True if data was replaced false otherwise
function: def replace_workspace_artists(self, workspace):
          """
          Replace the data of any artists relating to this workspace.
          The axes are NOT redrawn
          :param workspace: The workspace containing the new data
          :return : True if data was replaced, false otherwise
          """
          try:
              artist_info = self.tracked_workspaces[workspace.name()]
          except KeyError:
              return False
  
          is_empty_list = [workspace_artist.replace_data(workspace) for workspace_artist in artist_info]
  
          for index, empty in reversed(list(enumerate(is_empty_list))):
              if empty:
                  artist_info.pop(index)
  
          return True
function_tokens: def replace_workspace_artists ( self , workspace ) : try : artist_info = self . tracked_workspaces [ workspace . name ( ) ] except KeyError : return False is_empty_list = [ workspace_artist . replace_data ( workspace ) for workspace_artist in artist_info ] for index , empty in reversed ( list ( enumerate ( is_empty_list ) ) ) : if empty : artist_info . pop ( index ) return True