i'm trying to use a custom matplotlib-style
But it does not work:
As mentioned here:
http://matplotlib.org/users/style_sheets.html
i tried the following:
import matplotlib.pyplot as plt
print plt.style.available
matplotlib.pyplot works fine. But it keeps saying that style is not defined.
>>> import matplotlib.pyplot as plt
>>> print plt.style.available
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'style'
What is the solution?
It is Mac Os X Yosemite and it is installed as Administrator in the default location.
site-packagesand check if the style folder exists. (the location of this depends on your operating system and Python installation)