2

3 つの異なるメソッドの歳差運動とリコールを計算し、それらを 3 つの異なる色で表す棒グラフがあります。使用したコードは次のとおりです。

x=[0.4,0.31,0.21]
y=[0.45,0.38,0.27]
bar(x,y,0.1)
h = bar(x,diag(y),0.1,'stacked');
xlabel('precession')
ylabel('recall') 

ここに画像の説明を入力

を表示する凡例を追加したいのですがmaroon color is for indiscernible relationgreen is for discernible relationblue is for equivalence relation

4

1 に答える 1

2

これを試して:

legend('indiscernible relation','cernible relation' ,'equivalence relation')

色は凡例に自動的に挿入されます

于 2015-05-23T13:24:30.840 に答える