matlab.graphics.illustration.Legend/set
Show older comments
Hi, I was wondering if anyone could help me get past this error using matlab to create a graph?
There appears to be an issue with setting the legend and I'm not sure how to fix this
Many thanks in advance!

Answers (2)
Hello,
Try this,
legend_h = legend('TOFA (5uM)... ...');
set(legend_h,'Color','none','...','...');
It seems you have forgotten a comma between name/value pair argument. ('Color', 'none')
1 Comment
Ewan Hislop
on 23 Oct 2019
Steven Lord
on 23 Oct 2019
0 votes
The legend object does not have a property named Blue.
If you're trying to change the colors of the objects listed in the legend, change the Color properties of those objects. You can't change them via the handle returned from legend as far as I am aware.
1 Comment
Ewan Hislop
on 24 Oct 2019
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!