Using pyplot to create grids of plots
问题 I am new to python and having some difficulties with plotting using pyplot . My goal is to plot a grid of plots in-line ( %pylab inline ) in Juypter Notebook. I programmed a function plot_CV which plots cross-validation erorr over the degree of polynomial of some x where across plots the degree of penalization (lambda) is supposed to vary. Ultimately there are 10 elements in lambda and they are controlled by the first argument in plot_CV . So fig = plt.figure() ax1 = fig.add_subplot(1,1,1)