How to control lines in the legend?

In the legend there is small line element, but it is very ugly sometimes in case of dashed line. How to control its length?

Answers (1)

dpb
dpb on 30 May 2015
AFAIK, all you can do is save the object handles (the optional return values) when you create the legend and then set properties of those objects as desired. You're somewhat limited in what handle graphics lets you do to the builtin characteristics of the line styles.

2 Comments

In gnuplot, this can be editable.
Matlab isn't gnuplot...

Sign in to comment.

Asked:

on 29 May 2015

Commented:

dpb
on 10 Jun 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!