How can I add a text with the statistical test name I conducted in a boxplot?

3 ビュー (過去 30 日間)
Ziv Kassner
Ziv Kassner 2020 年 9 月 7 日
コメント済み: Ziv Kassner 2020 年 9 月 7 日
Hi,
If you have a better solution for it, please tell me.
I want to write the tests name in the box on the left-bottom corner.
Thank you in advance,
Ziv
test_name = 'Independent s.ttest'
a = rand(100,3);
boxplot(a);
legend('Statistical test');
lg = legend(test_name);
lg.Location = 'southwest';

採用された回答

Rik
Rik 2020 年 9 月 7 日
You probably need something like annotation. You could also use a more basic text object.

その他の回答 (0 件)

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by