越学坑越多,哭!来不及做图了。
1】柱状图
matplotlib.pyplot. bar (*args, **kwargs)
bar(left, height, width, bottom, * args, align='center', **kwargs)
参数: left:数据标量 height:高 width:款 bottom:底端对应Y轴align:对齐如果为 "居中", 则将x参数解释为条形中心的坐标。如果 "边缘", 将条形按其左边缘对齐要对齐右边缘的条形图, 可传递负的宽度和对align='edge'
2】直方图
matplotlib.pyplot.hist(
x,bins=10,range=None,normed=False,weights=None,cumulative=False,
histtype='bar', align='mid',orientation=u'vertical', log=False,color=None, label=None,stacked=False,hol