This is an IPython Notebook that parse the XML file exported from Apple Health app and plot the sleep schedule plot. An example plot looks like:
c0rychu/apple-sleep
Making sleep schedule plot from the XML file exported from Apple Health app
Jupyter Notebook