Python的Matplotlib模块可以绘制线图、柱状图、饼状图等多种
这次自己爬虫过程中用到了柱状图,就柱状图的风格来说一说~
from matplotlib import 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', 'seaborn-notebook', 'seaborn-paper', 'seaborn-pastel', 'seaborn-poster', 'seaborn-talk', 'seaborn-ticks', 'seaborn-white', 'seaborn-whitegrid', 'seaborn', 'Solarize_Light2', '_classic_test']
- bmh
from matplotlib import pyplot as plt
data=['0','3'