python中matplotlib绘图时,默认风格背景色为白色,无网格线,可以使用plt.style.use切换绘图风格。
目录
1、matplotlib有哪些绘图风格
使用plt.style.available输出所有风格名称,共计26种。
import matplotlib.pyplot as plt
print(plt.style.available)
['bmh', 'classic', 'dark_background', 'fast', 'fivethirtyeight', 'ggplot', 'grayscale', 'seaborn-bright', 'seaborn-colorblind', 'seaborn-dark-palette', 'seaborn-dark', 'seaborn-darkgrid', 'seaborn-deep', 'seaborn-muted&#