swap backend in matplotlib