making some change inside of the legend box
3 次查看(过去 30 天)
显示 更早的评论
Hello
I have assigned color to my figures. legend box includes info about what color covers what range of data. when i change the font size, it only changes the size of the text inside of the legend box (ex: 0-100 cd) . please see the attachment. how can I change those dots to be more legible ? thanks !
L1 = (z > 0) & (z <= 100);
L2 = (z > 100) & (z <= 1000);
figure(1)
scatter3(x(L1), y(L1), z(L1), 'b', '.')
hold on
scatter3(x(L2), y(L2), z(L2), 'c', '.')
hold on
lgd =legend('0 - 100 cd/m2 ', '100 - 1000 cd/m2')
lgd.FontSize = 14;
回答(1 个)
KSSV
2019-2-6
YOu have to increase the marker sizes while plotting the data.
A = rand(10,3) ;
plot(A,'.','MarkerSize',10)
lgd = legend ;
lgd.FontSize = 14;
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!