def get_registered_canvas_class(format):
 if (format not in _default_backends):
  return None
 backend_class = _default_backends[format]
 if cbook.is_string_like(backend_class):
  backend_class = importlib.import_module(backend_class).FigureCanvas
  _default_backends[format] = backend_class
 return backend_class

def get_registered_canvas_class ( format ) : if ( format not in _default_backends ) : return None backend_class = _default_backends [ format ] if cbook . is_string_like ( backend_class ) : backend_class = importlib . import_module ( backend_class ) . FigureCanvas _default_backends [ format ] = backend_class return backend_class
return the registered default canvas for given file format .