subplot()
将图片分成几个
from matplotlib.pyplot import *
x = [1, 2, 3, 4 ,5]
y = [8, 7, 4, 5, 2]
figure()
subplot(231)
plot(x, y)
subplot(232)
bar(x, y)
subplot(233)
barh(x, y)
subplot(234)
boxplot(x, y)
subplot(235)
scatter(x, y)
subplot(236)
y1 = [3, 6, 7, 10, 23]
bar(x, y1, bottom=y, color='green')
show()