Why does the legend not resize when I modify the legend font size in MATLAB 2013 ?
1 次查看(过去 30 天)
显示 更早的评论
In a subplot, the legend box does not update its size and location when the font size of the legend text and the sample line lengths are decreased. To resolve this issue, I tried specifying the legend explicitly like this
hleg = legend('a','b',c','d')
set(hleg,'Position', [x0,y0,width,height]);
But this time, the legend remains invisible and behind the plot. Is there a way to work around this issue ?
1 个评论
Star Strider
2014-7-16
What was your original code? It would help to know what did not work and why the fix failed as well.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!