MATLAB: How to change gap between legend line and legend text gaplegendplottext; How to change (horizontal) gap between legend line and legend text? Best Answer You can increase the space by adding blanks ' ' in front of the legend entries. This is a hack, of course. Related SolutionsMATLAB: How to align the legends of a plot with a text box such that they are aligned vertically https://www.mathworks.com/help/matlab/ref/legend.html#bu7fn5n-1 MATLAB: Legend when you do plot something you can specify your 'something' by the legend to know which plot corresponds to which function. try following: t=0:0.1:10;y1=2*t;y2=4*t;plot(t,y1,t,y2);legend('2*t','4*t'); Related QuestionLegendHow to use tabs in legend textVertical Title in subplot
Best Answer