1

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?

2

1 Answer 1

3

You can use savefig:

import matplotlib.pyplot as plt
plt.plot(range(10), range(10))
plt.savefig('a.pdf')
Sign up to request clarification or add additional context in comments.

2 Comments

@TiagoBruno Please consider accepting it as the answer by clicking the 'tick' on the left if it helped you. Thanks.
I am waiting the minimum time required to accept an answer. You can accept an answer in 20 seconds.

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.