# pull out partial slopes (drop intercept version) beta_coeffs = [x[1:] for x in coeffs_array] plt.plot(log_lambda_seq, beta_coeffs) plt.title('Partial Slopes vs Log-Lambda') plt.ylabel('Partial Slope Values') plt.xlabel('Log-Lambda') plt.show()