Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

When using:

In [42]: tz_counts[:10].plot(kind='barh', rot=0)

it return:

Out[42]: <matplotlib.axes._subplots.AxesSubplot at 0x7fa216b464d0>

But I can't see any file, it isn't showing either.

I start learning python today. Can someone help me?

share|improve this question
    
you try save the plot as a image ? like a png ? – JuanPablo Jul 5 '15 at 0:18
1  
up vote 2 down vote accepted

You can use savefig:

import matplotlib.pyplot as plt
plt.plot(range(10), range(10))
plt.savefig('a.pdf')
share|improve this answer
    
it miraculously worked - Thank You, – Tiago Bruno Jul 5 '15 at 0:25
    
@TiagoBruno Please consider accepting it as the answer by clicking the 'tick' on the left if it helped you. Thanks. – Sait Jul 5 '15 at 0:26
    
I am waiting the minimum time required to accept an answer. You can accept an answer in 20 seconds. – Tiago Bruno Jul 5 '15 at 0:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.