1c=[0.001, 1, 100]
2ratios = [(100,2), (100, 20), (100, 40), (100, 80)]
3plt.figure(figsize=(20,15))
4a,b,d=4,3,1
5for j,i in enumerate(ratios):
6 #Code
7 for C in c:
8 #Code
9 plt.subplot(a,b,d)
10 plt.title('C = {0},{1}'.format(C,ratios[j]))
11 plt.scatter(X[:,0],X[:,1],c=y,marker='o',s=30, cmap=plt.cm.Paired)
12 draw_line(coef,intercept, mi, ma)
13 d+=1
14plt.show()
1plt.subplots(1, 2, gridspec_kw={'width_ratios': [3, 1]})
2or
3plt.subplots(rows,1,figsize=(35, rows*3), sharex=True, gridspec_kw={'height_ratios': [1,1,1,1,1,1, 3]})