Not able to plot in IPython (in Ubuntu)

ipython
python

#1

Hello,

I am trying to plot in IPython environment in Ubuntu and I am not able to get the plot, I invoked IPython using

ipython notebook %pylab=inline

I used this command

In [79]:count_subset.plot(kind=‘barh’,stacked=True)

but I am getting

Out[79]: matplotlib.axes._subplots.AxesSubplot at 0x7f54a4414410

without any plot. How to deal with this issue?

thanks


#2

Please try the show option after plot option
count_subset.show()

Hope this solves the issue!

Thanks,


#3

It is giving this error

AttributeError: ‘DataFrame’ object has no attribute ‘show’


#4

Oh! Okay I thought count_subset as a matplotlib object. Please try the following

count_subset.plot(kind=‘barh’,stacked=True)
import matplotlib.pyplot as plt
plt.show()

Hope this helps!


#5

@SRK,
Yes this worked!
Thanks a lot!