Code covered by the BSD License  

Highlights from
Spider plot tool

4.83333

4.8 | 6 ratings Rate this file 57 Downloads (last 30 days) File Size: 4.11 KB File ID: #22708
image thumbnail

Spider plot tool

by

 

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   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (14)
02 Jul 2014 Steffen  
02 Jul 2014 Steffen

Hello Michael,

Thanks for quick answer.
I already tried to edit with get and set, obviously I made a mistake.
Maybe I have to change "ca" not "x"?

Steffen

01 Jul 2014 michael arant

Hello Steffen
Yes but it is a user action. "X" in the outputs is the axes handles. From there you can edit the axes using get and set. It could have been done from the command line but I arbitrarily left that out. The complexity vs. adaptability compromise.

Thanks
Michael

01 Jul 2014 Steffen

Is it possible to plot more then two positions after decimal point?

07 Mar 2014 Nyeinsu

Thanks a lot... It's exactly what I am searching for.
It saves a lot of time for me.

10 Jun 2013 Lars

Well done! :)

@ Cyril: With the chop.m-file of this http://www.liv.ac.uk/pjgiblin/maths/mfiles/ side it works.

19 Apr 2013 Richard McCulloch

Works great! I agree with Linus, well commented and very nicely done!

27 May 2011 Chiao

Bravo. Exactly what I need. Thank you

27 May 2011 Chiao  
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

10 Jun 2010 Cyril

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

09 Nov 2009 Linus  
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.

02 Feb 2009 Linus

Brilliant, well commented and very nicely done

Contact us