How to plot this?

3 views (last 30 days)
BN
BN on 14 Nov 2020
Commented: BN on 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

Accepted Answer

Alan Stevens
Alan Stevens on 14 Nov 2020
Edited: Alan Stevens on 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 Comment
BN
BN on 14 Nov 2020
Thank you it's very good.

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!