I tried a simple line plot using matplotlib using the code as below.
kss_date= ['2017-10-17', '2017-10-19', '2017-10-20', '2018-09-20', '2018-09-21', '2019-09-03', '2019-09-04']
kss_conc = ['12.3', '12.6', '13.0', '12.2', '11.2', '9.9', '10.5']
plt.plot(kss_date, kss_conc,'.-')
plt.xlabel('Date')
plt.ylabel('Concentration')
plt.xticks(rotation = 90)
plt.show()
I see that the y axis not increasing gradually as in the image. I want the bottom most value to be 9.9 and the top to be 13.0. I tried plt.ylim() but it didn't help. Can someone please explain me what is happening?.