Fix plot display in IPython notebook

It seems that calling figure.show() is not working in IPython notebook.

Closes #115