I am trying to modify the graph specifically I do not like seeing the spaces to the left and to the right on the x axis and would like it to squeeze to fit.
the values of the x axis are datetime objects.
xmin,xmax = plt.xlim()
print(xmax)
print(xmin)
returns
17707.15
16757.85
What is the proper way to modify these limits? Should I convert the correct datetime object to an int and set xlim using that. Or is there a function within matplotlib that will remove these gaps (only on the x axis) for me.