Esempio n. 1
0
 def find_backends(self, key=None, plot=None):
     matches = self.backends
     if key is not None:
         klass = BackendRegistry.get_class(key)
         matches = [item for item in matches if isinstance(item, klass)]
     if plot is not None:
         matches = [item for item in matches if repr(item.plot) == repr(plot)]
     return matches