I need to draw two bar plot with yy. The problem is one bar plot covers the other one and I want it to be transparent.

1 回表示 (過去 30 日間)
I need to draw two bar plots in a figure with yy. The problem is one bar plot covers the other one and I want it to be transparent.
figure
x= 1:1:24;
yyaxis left
bar(x,R2,'FaceColor',[.8 0.2 0.5]);
ylabel('R2')
yyaxis right
bar(x,RMSE,'FaceColor',[0.5 0.5 .7]);
ylabel('RMSE')
xticks([1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24]);
xlabel('Hour');

採用された回答

madhan ravi
madhan ravi 2019 年 1 月 11 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by