How to plot this?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Alan Stevens
le 14 Nov 2020
Modifié(e) : Alan Stevens
le 14 Nov 2020
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
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Discrete Data Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!