Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am using pandas to plot a graph. The following is my function
count_subset.plot(kind='barh', stacked=True)
The response I get is
<matplotlib.axes.AxesSubplot at 0x111fc4ad0>
I can't see the graph anywhere. Am I missing some library ?
You have to 'show' the plot using matplotlib's show:
show
import matplotlib.pyplot as plt ... #plotting code plt.show()
Another way is, if you use IPython, to activate the matplotlib magic to have it interactively (no need to call show then):
%matplotlib
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.