I have tried %matplotlib inline , it does not work the plot remains static