#设置x轴名称,plt.xlabel
ax1.set_ylabel('y-name') #设置y轴名称,plt.ylabel
plt.axis([-6,,-10,]...) #设置横纵坐标轴范围,这个在子图中被分解为下面两个函数
ax1.set_xlim(-5,) #设置横轴范围,会覆盖上面的横坐标...1个作图,并设置背景色
sub2=plt.subplot() #将窗口分成2行1列,在第2个作图
sub1.plot(x,y) #绘制子图
sub2.plot(x,y)...、高度、柱宽、透明度、颜色、图例
#关于左偏移,不用关心每根柱的中心不中心,因为只要把刻度线设置在柱的中间就可以了
plt.xticks(x_index + bar_width/, x_data)...0
8
导入Seaborn
import seaborn as sns
0
9
直方图barplot
x = np.arange()
y = np.array([,,,,,,,])
df = pd.DataFrame