エラーバーグラフの凡例のマーカーからエラーバーを抜く方法
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Takeshi Kizaki
il 24 Lug 2019
Risposto: Akira Agata
il 25 Lug 2019
エラーバー付きのグラフに凡例をつけてますが、凡例にもエラーバーがついてしまってマーカーの形が小さくなり判別しにくくなってしまいます。凡例のマーカーからエラーバーを抜く方法はあるのでしょうか?
0 Commenti
Risposta accettata
Akira Agata
il 25 Lug 2019
エラーバーチャートの上に空のグラフ(エラーバー無し)を上書きして、そのグラフに対して凡例を指定する、というのはいかがでしょうか? 以下はその一例です。
% Sample data
x = 1:10:100;
y = 100*rand(1,10);
err = 8*ones(size(y));
% Errorbar chart w/ legend
figure
errorbar(x,y,err,'bo-')
hold on
h1 = plot(nan,nan,'bo-'); % Empty graph w/o errorbar
legend(h1,'Test');
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Errorbars in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!