In matplotlib I can easily align the title to the left with this command:
ax.set_title(f"Title", ha='left', x=-0)
and I get:
But sometimes I want to align the title to where the left label begins, to get something like:
I usually do it by trial and error. At the end I get an arbitrary x offset like:
ax.set_title(f"Title", ha='left', x=-.12)
How would I automatically calculate this -.12 offset?


