Hi,
I am having some issues with positioning the legend manually. It seems that wen I set the 'position' property manually something goes bad or at least behaves strangely.
Take this example:
figure
hold on
h(1) = plot(1,1,'.');
h(2) = plot(1,1,'o');
h(3) = plot(1,1);
legHand = legend(h,{'daasdadsad' 'asdfasdf' 'asdfdf'});
set(legHand,'position',get(legHand,'position'))
print(gcf,'-dpng','-r600','test.png')
I think that when I set the position of the legend by the values from get(position) then the legend should not change. But in fact it does change position as well as the spacing between the lines of the legend. Is there a reason for this behavior?
For a more complex plot this becomes somewhat annoying and I have troubles manually positioning the legend as it would not position itself at the place I would hope it does.
Any thoughts? Thomas