How do I change each individual axis interval in a spider plot?

조회 수: 3 (최근 30일)
Tessa Gagne
Tessa Gagne 2022년 1월 24일
답변: Kumar Pallav 2022년 1월 27일
I have a 5 category/data group spider plot. Each data group has different averages for example one average is in the 30,000s and the other is in the low 0.5s. I am looking to change each individual axis of my spider plot (so each line) so that I can show all this data on one plot. Please help with this code! Thank you!

답변 (1개)

Kumar Pallav
Kumar Pallav 2022년 1월 27일
Hello,
You could set the axis limits for each category of data group.
Please refer this for more on spider plot.
As an example,
D1 = [5 3 9 1 2];
D2 = [5 8 7 2 9];
D3 = [8 2 1 4 6];
P = [D1; D2; D3];
% Spider plot
spider_plot(P,...
'AxesLimits', [1, 2, 1, 1, 1; 10, 8, 9, 5, 10]); % [min axes limits; max axes limits]
Here, for 5 categories/features of data, the minimum and maximum axes limits are set manually. You could arrange your data accordingly to fit.
Hope it helps!

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by