How to plot this?

3 vues (au cours des 30 derniers jours)
BN
BN le 14 Nov 2020
Commenté : BN le 14 Nov 2020
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

Réponse acceptée

Alan Stevens
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
  1 commentaire
BN
BN le 14 Nov 2020
Thank you it's very good.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by