How to plot this?
3 次查看(过去 30 天)
显示 更早的评论
Dear all, I want to have something like this plot:
GPCC, UDel, CRU, and APH are models, and MBE, MAE, and MD are corresponding metrics of them.
If anyone can guide me on how to have this plot if I have the following data (for example):
MAE MBE MD
GPCC 2 5 1
UDEL 0.5 2 1.5
APH 8 4 2
CRU 3.5 2.5 0.1
I would be so much grateful. I searched and downloaded some functions from FEX using the spider keyword but none of them solve my problem.
Thank you
0 个评论
采纳的回答
Alan Stevens
2020-11-14
编辑:Alan Stevens
2020-11-14
How about
ux = [1 0 -1 0 1];
uy = [0 1 0 -1 0];
% The order is CRU GPCC UDEL APH anticlockwise starting on positive x axis.
MAEx = [3.5 0 -0.5 0 3.5];
MAEy = [0 2 0 -8 0];
MBEx = [2.5 0 -2 0 2.5];
MBEy = [0 5 0 -4 0];
MDx = [0.1 0 -1.5 0 0.1];
MDy = [0 1 0 -2 0];
figure(1)
hold on
for i = 1:8
plot(i*ux,i*uy,'k--')
plot(MAEx,MAEy,'r',MBEx,MBEy,'b',MDx,MDy,'g','LineWidth',2)
end
text(8,0,'CRU')
text(-2,9,'GPCC')
text(-10,0,'UDEL')
text(-1,-9,'APH')
legend(' ','MAE','MBE','MD')
axis([-10 10 -10 10])
axis equal
axis off
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!