Reading the matplotlib documentation, it looks like style is a module of matplotlib (matplotlib.style).
However, I've seen this code: matplotlib.pyplot.style.use('seaborn')
I don't understand how the style module can be associated with (and called from) the matplotlib.pyplot module.