Hello, I am trying to add an annotation (textbox) to a plot that is on an axes component (Im using GUIDE). I understand you cannot set as a container the axes component so thought I could just get the x,y, coordinates of the axes.
axes(handles.axes1); p=get(handles.axes1,'Position') dim = [p(1) p(2) .3 .3]; str = ['Max dist (+/-0.1mm) = ',num2str(mxdist11,'%.4f')]; ann=annotation('textbox',dim,'String',str,'FitBoxToText','on', 'BackgroundColor','#FEBEAD');
But its not showing in the correct location
Surely this should be in one of the corners?
My aim is to get it in the top right corner.
thanks for any help
Best Answer