Reading | Output (N) | Reading | Output (N) | |
1 | 923 | 6 | 916 | |
2 | 932 | 7 | 927 | |
3 | 908 | 8 | 931 | |
4 | 932 | 9 | 926 | |
5 | 919 | 10 | 923 |
Code
#importing matplotlib library for plotting
import matplotlib.pyplot as plt
#creating the y values
y = [923, 932, 908, 932, 919, 916, 927, 931, 926, 923]
#plotting the data
plt.plot(y, marker='o')
#setting x-label
plt.xlabel('Experiment Number')
#setting y-label
plt.ylabel('Force Load')
#setting the title
plt.title('Force load acting on small area')
plt.savefig('plot.png')
#display the plot
plt.show()
Plot
Comments has been given in the code for the reference. Please execute the code in any python IDE to get the output.
Get Answers For Free
Most questions answered within 1 hours.