- 1

Help me.... Following is the code for plotting the two graphs. The second graphs has a problem.

plt.figure(1) plt.subplot(211) plt.title("polynomial fit") plt.plot(x_vals, new_y_vals, 'r--',x_vals, y_vals, 'b*') plt.subplot(212) plt.title("error bars") plt.bar(x_vals, errors) plt.show(block=False) print("Please see the fitted curve and error plot")

15th Apr 2018, 2:04 PM
Ayshah
0 Answer