0

I have a heatmap with long y tick labels. I would like to align them all to the left.

Here is a picture of what I have: enter image description here

Here is the image of how I would like it to be: enter image description here

I found this page, which does exactly what I wanted, but that is not working for me. When I try to use ax.axis["left"].major_ticklabels.set_ha("left") I get an error.

I also found this stackoverflow question, but the output is coming out like this: enter image description here

Gustavo Amarante
  • 142
  • 1
  • 4
  • 15
  • This [answer](https://stackoverflow.com/a/15883858/7758804) works without issue and seems like the best opiton: [code and plot](https://i.stack.imgur.com/beLSc.png) – Trenton McKinney May 18 '23 at 16:59
  • This [answer](https://stackoverflow.com/a/71815278/7758804), but has the unfortunate effect of making other axes functions not work (e.g. `ax.tick_params(tick1On=False)` does noting: [code and plot](https://i.stack.imgur.com/GmIuR.png) – Trenton McKinney May 18 '23 at 17:04

0 Answers0