rm import from matplotlib