How do I get rid of the white space on top of my Plotly chart?

I asked this question on Stack Overflow without a response so far. I have a plot that seems to work correctly, but it has too much white space on top of the chart. How do I get rid of the white space? If you follow the above SOF link you can see a screen shot and the code. Any help is greatly appreciated.