Is Matplotlib throwing strange errors? Maybe you need to fix your installation? See also the docs Installing Matplotlib