I have a scatter plot created in matplotlib in python where the x-axis is the date and the y-axis is the time. I would like to add some padding to my y-axis so the points aren't cut off at the top and bottom. I've heard of setting ax.ylim([x,y])
to be a little bit smaller than the smallest value and a little bit larger than the largest value but this is impossible with time as there is no such thing as negative time or 25:00.
This is what the image looks like now:
As you can see the points at the top and bottom are cut off.
Any help would be greatly appreciated!