ax.plot_date((dates, dates), (highs, lows), '-')
I'm currently using this command to plot financial highs and lows using matplotlib. It works great, but I also need the option to remove the blank spaces in the x-axis left by days without market data, such as weekends and holidays.
I have lists of dates, highs, lows, closes and opens. I can't find any examples of creating a graph with an x-axis that show dates but doesn't enforce a constant scale.
I'd appreciate any help!