Context:

I have a dataset of measurements, and based on that data I have 2 linear equations ("Friss" and "Linear Regression"), and as I show in the legend that "k–" is "Friss" I also want to show that this line has the slope "m" and the intercept "n" in order to easily compare it with the "Linear Regresson"

First Try:

So, in order to make it look good I tried what I knew, add a "|" to the legend to separate one information from the other, that was "ok" but I wanted it to look aligned. So I tried another way.

Second Try:

What if I add a lot of spaces to make it look aligned?

It's almost perfect but, because of the width of each letter in the beginning being different it doesn't align perfectly this way. So I tried another approach

Third Try:

This time it was quite different, I added another 3 plots in this figure

`hold onplot(NaN,NaN,'w.')plot(NaN,NaN,'w.')plot(NaN,NaN,'w.')`

Then I added the information I wanted aligned in a second column of the legend

`legend('Measurements','Friss','Linear Regression', ... '',['m = ' num2str(mFriss,'%.1f') ', n = ' num2str(nFriss,'%.1f')],['m = ' num2str(m,'%.1f') ', n = ' num2str(n,'%.1f')],'NumColumns',2)`

It is finally aligned but as you can see, the two columns are so far apart that it seems that they are two different pieces of information and without any relationship.

Then, what I would like to do is to change the space between both columns, so to do that I should change the width of the symbol of the legend, and I don't know how to do that so:

- Is it possible to change the symbol's width of the legend? if it is how can I do it? and could I change only some of the symbols and not all of them?
- Is there a better way to do what I wanted to do? if it is could you share it with me please?

Beforehand thank you very much

## Best Answer