MATLAB Answers


Increase spacing between legend entries

Asked by Peter
on 6 Jan 2013


I've created a legend using the commands:

hl = legend('$$Pe = 400 \vspace{5mm}$$','$$Pe = 800$$','$$Pe = 1200$$','$$Pe = 1600$$','$$Pe = 2000$$');

set([hl], 'Interpreter', 'Latex','fontsize',28)

The problem is when I place this in my paper, the whole image is reduced in size and the legend entries are too close together. Is there a way that I can increase the vertical spacing between each legend entry?




No products are associated with this question.

1 Answer

Answer by Mohsen
on 6 Jan 2013

Use following code between each legend entry s=' '; fwrite(fid1,s,'uint8');


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!