Code covered by the BSD License  

Highlights from
Spider plot tool

4.66667

4.7 | 3 ratings Rate this file 32 Downloads (last 30 days) File Size: 4.11 KB File ID: #22708
image thumbnail

Spider plot tool

by michael arant

 

17 Jan 2009

Plots matrix column data in a spider plot.

| Watch this File

File Information
Description

Function plots table data in a spider (or radar) plot form. Permits independent or global axis limit controls as well as axis labeling and data set labeling. Also allows for the plot axes to be specified. Any inputs other than the data to be plotted can be left as null ([]) which then uses the default settings. Minimum of three axes (three rows to the data) required (technical limitation to a spider plot). No maximum on number of rows (axes) or columns (data sets) but plots can get busy if rational limits are not used.

Examples are included in the help listing for usage methods.

% create a spider plot for ranking the data
% function [f, ca, o] = spider(data,tle,rng,lbl,leg,f)
%
% inputs 6 - 5 optional
% data input data (MxN) (# axes (M) x # data sets (N)) class real
% tle spider plot title class char
% rng peak range of the data (Mx1 or Mx2) class real
% lbl cell vector axes names (Mxq) in [name unit] pairs class cell
% leg data set legend identification (1xN) class cell
% f figure handle or plot handle class real
%
% outptus 3 - 3 optional
% f figure handle class integer
% x axes handle class real
% o series object handles class real
%
% michael arant - jan 30, 2008

Minor bug with automatic placement of legend (may cover the axis labels). Legend can be moved manually.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
02 Feb 2009 Linus

Brilliant, well commented and very nicely done

03 Feb 2009 michael arant

Thank you Linus

If you have any ideas on improving the function or the calling of the function, I would like to know. The passing of the axis labels, units, data set labels, etc. is a bit clunky but I could not think of a better method. I am hoping that as others use this someone with get an inspiration.

09 Nov 2009 Linus  
10 Jun 2010 Cyril

very nice... Didn't work initially as the 'chop' function seems to be obsolete in R2010a.

17 Jan 2011 michael arant

A few users with long legend labels have suggested replacing the location in the legend call (line 222) from ‘northeastoutside’ to ‘best’. This does improve appearance in some cases. I’ll leave it to the user to decide which placement to use.
michael

27 May 2011 Chiao  
27 May 2011 Chiao

Bravo. Exactly what I need. Thank you

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
spider plot michael arant 19 Jan 2009 10:40:53
radar plot michael arant 19 Jan 2009 10:40:53

Contact us at files@mathworks.com