I am trying to make a plot using matplotlib. My current dates are actually ints, 195003, 195006, etc. Therefore, when I make the plot, the line chart is not smooth as there is a big gap betweem 195012 to 195101. Is there a way to solve this? Thanks a lot!
import matplotlib.pyplot as plt
x = [195003,195006,195009,195012,195103,195106,195109]
y = [1,2,3,4,3,2,1]
plt.plot(x,y)
#This is the target - a smooth line chart
plt.figure(2)
plt.plot(y)