-1

As in the image below, the rotated xticks are ticked in the middle of the label. [1]: https://i.stack.imgur.com/ZE3ew.png Instead, I want it ticked in the end so that there is no overlap. the code to get this is

sns.heatmap(cov,annot=True)
plt.xticks(rotation=45)[enter image description here][1]
Mihail Duchev
  • 4,691
  • 10
  • 25
  • 32

1 Answers1

0

Does this link answer your question?

plt.xticks(rotation=45, 
           horizontalalignment='right',
           fontweight='light'  
           )
RandomGuy
  • 1,076
  • 6
  • 17