MATLAB Answers

How to control FontSize and MarkerSize of Legend at the same time?

1 view (last 30 days)
Jing Ci Neo
Jing Ci Neo on 20 Nov 2019
Edited: Jing Ci Neo on 20 Nov 2019
I can control fontsize and markersize in legend separately but not together.
For example, to control fontsize I use:
lgd =legend('A,'B',C');
And to control markersize I use:
[lgd,icons] =legend('A,'B',C');
icons2 = findobj(lgd,'Type','line');
icons3 = findobj(icons2,'Marker','none','-xor');
Can anyone help me with this problem? I am driving myself nuts. Thanks alot!


Sign in to comment.

Answers (0)

Sign in to answer this question.