While trying to set the "styles" module in matplotlib I get an AttributeError as below:
import matplotlib.pyplot as plt
plt.styles.use("ggplot")
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
plt.styles.use("ggplot")
AttributeError: 'module' object has no attribute 'styles'
Why is that? How can I fix it? I am using python 3 64 bit
EDIT: I get the same error using
plt.style.use("ggplot")