import pylab
xs = pylab.arange(10.0) + 733632.0
ys = [1, 2, 3, 2, pylab.nan, 2, 3, 2, 5, 2.4]
pylab.plot_date(xs, ys, ydate=False, linestyle='-', marker='')
pylab.show()
How to skip empty dates (weekends) in a financial Matplotlib Python graph?