I wanted to rotate a text in my plot. A sample code would be like this:
plt.text(0.5, 0.0, 'ABC', fontsize=40, rotation=90)
plt.text(0.5, 0.5, 'DFG', fontsize=40, rotation=90)
But the said texts are not aligned properly. I have attached a figure to illustrate this
