Setting the position of the `ylabel`

You can move the ylabel using ax.yaxis.set_label_coords, which does accept negative numbers. For your example, I removed the line with set_label_position, and added:

axPres.yaxis.set_label_coords(-0.1,1.02)

enter image description here

Leave a Comment