Align ylabels in scattermatrix

I have the following plot:

If I change the ylabelpadding, I move all ylabels by the same amount. Is there a way to set the ylabelpadding such that the ylabels are aligned?

(I wish to do the same for the xlabels, but lets focus on the ylabels.)

You have to set the same yticklabelspace for all of them, to be precise you should set all of them to the maximum ticklabel width among them. There should be a function tight_ticklabels or something like that, which should set the attribute to the current label width. Then you can read it out and determine the maximum, then set that.

1 Like