I use the following code to find the position of xlabel in a matlab figure.
xlabel('X'); get(get(gca,'XLabel'),'Position');
which gives me some coordinates (0.4981 -0.0669 1.0001). I think the coordinate is just the position of the top left label. So, how do I find the anchor for the label if I only know the fonts?
source share