Recent problem with legend in V2017a

5 ビュー (過去 30 日間)
Ori Henderson-Sapir
Ori Henderson-Sapir 2020 年 7 月 7 日
コメント済み: Kawin Kumaran 2020 年 7 月 7 日
Hello,
I have been having a recent issue (few months) with legends not showing poperly on any figure I generate, or even dispalying old figures (that were fine in tha past).
Any standard plot does that, for example:
figure(5); plot(1:10,1:10,'-rx');
hold on
plot(1:10,2:2:20,'-bo');
legend('show')
First legend line always shows weirdly and if there is only one set of data the text sits on the line with the marker.
The second set of data doesn't display properly either.
I always get an error message:
"Warning: Error updating Legend.
not enough input arguments"
Sometime I get more involved message:
"In defaulterrorcallback (line 12)
In print (line 36)
In hgexport
In filemenufcn>localSaveExportHelper (line 219)
In filemenufcn>localSaveExport (line 344)
In filemenufcn (line 56)
Warning: Error updating Legend.
not enough input arguments"
Any suggestions would be welcome. I've been trying to solve this for weeks.

回答 (1 件)

Kawin Kumaran
Kawin Kumaran 2020 年 7 月 7 日
We can also name the legends manually . Please try the following :
legend('data1', 'data2') % instead of legend('show')
  2 件のコメント
Ori Henderson-Sapir
Ori Henderson-Sapir 2020 年 7 月 7 日
Thanks Kawin,
Unfortuentaly it doesnt help. I should have mentioned that I tried all of the simple manual fixes I could think of (I am not much of an expert but tried doing all of the manual legend entries mentioned in the documentation). I suspect this is a bug due to installation of something or MS update maybe?
Kawin Kumaran
Kawin Kumaran 2020 年 7 月 7 日
It might be a bug in 2017 release. Please refer the following link of similar issue :

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by