I am not getting any plot when i am using matplotlib in ipython.here is the code:
%matplotlib inline
import matplotlib.pyplot as plt
sns.set() # use Seaborn styles
births.pivot_table('births', index='year', columns='gender', aggfunc='sum').plot()
plt.ylabel('total births per year');
and i am getting an output as :
<Figure size 432x288 with 1 Axes>
this is the output i am getting while running the code:
I am getting the answer when i use %matplotlib at the starting of the code.Some how this works for me.