matlab.gra​phics.illu​stration.L​egend/set

조회 수: 16 (최근 30일)
Ewan Hislop
Ewan Hislop 2019년 10월 23일
댓글: Ewan Hislop 2019년 10월 24일
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!
Screenshot 2019-10-23 at 11.51.37.png

답변 (2개)

Luna
Luna 2019년 10월 23일
편집: Luna 2019년 10월 23일
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
Ewan Hislop
Ewan Hislop 2019년 10월 23일
Sorry yes even with a comma inserted in my original script, I get the same error unfortunately.
I attempted your suggestion (legend_h) and I get the same error also :(
Thanks :)

댓글을 달려면 로그인하십시오.


Steven Lord
Steven Lord 2019년 10월 23일
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
Ewan Hislop
Ewan Hislop 2019년 10월 24일
Thanks for all the help...
I appeared to have solved the issue by deleting the set legend data line.
Cheers :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by