Plot font size issues

Hello S.,

I managed to change the fontsize of the title. How can you change the fontsize of the legend. Anytime I change the font_size value it influences the position, set in opt.

// Example Data
x = 0:0.1:10;
y1 = sin(x);
y2 = cos(x);
y3 = sin(x) .* cos(x);

// Plotting multiple lines
plot(x, y1, 'r');  // Plot the first line in red
plot(x, y2, 'g');  // Plot the second line in green
plot(x, y3, 'b');  // Plot the third line in blue



title('headline','fontsize', 6)
legend(['$p_3=4$'],opt=2,font_size=2)

I found it:

L=legend(['$p_3=4$'],opt=2)
L.font_size=5;

Hello,

legend() does not accept property modifiers as optional arguments, in fact such arguments are just ignored, only pos and box can be specified as named arguments. Properties of a Legend entity which cannot be specified in the function call have to be set afterwards, like you did above. However, the opt name argument you are using is just ignored.

S.