A
A
asipkov2021-03-01 20:40:40
Python
asipkov, 2021-03-01 20:40:40

How to change text display in matplotlib.pyplot?

Good evening
Can you please tell me how to display the text perpendicular to the axis and avoid gluing (there are 4-digit numbers - years)?
I couldn't find it in the documentation. Thank you!
603d2708d156d607646717.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy _, 2021-03-01
@asipkov

Try

plt.xticks(
    rotation=90 
)

&
plt.tight_layout()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question