MATLAB Answers



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

  0 件のコメント

サインイン to comment.


2 件の回答

回答者: Luna
2019 年 10 月 23 日
編集済み: Luna
2019 年 10 月 23 日

Try this,
legend_h = legend('TOFA (5uM)... ...');
It seems you have forgotten a comma between name/value pair argument. ('Color', 'none')

  1 件のコメント

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 :)

サインイン to comment.

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 2019 年 10 月 24 日
Thanks for all the help...
I appeared to have solved the issue by deleting the set legend data line.
Cheers :)

サインイン to comment.

Translated by