I create a simple plot with a legend using the following code:
plot(rand(4))h_legend=legend('One','Two','Three','Four');get(h_legend,'Position')h_text = findobj(h_legend,'type','text');set(h_text,'FontUnits','points','FontSize',4)get(h_legend,'Position')
The legend box does not change to fit the text.
Best Answer