How to plot this?

3 次查看(过去 30 天)
BN
BN 2020-11-14
评论: BN 2020-11-14
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

采纳的回答

Alan Stevens
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 CenterFile Exchange 中查找有关 Discrete Data Plots 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by