[![View spider_plot on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/59561-spider_plot)
# spider_plot
Create a spider or radar plot with customizable individual axes.
The three functions included have the same functionality but with 3 different implementation:
- **spider_plot()** is compatible with most MATLAB versions.
- **spider_plot_R2019b()** is compatible with R2019b and above. It uses the new argument validation feature.
- **spider_plot_class()** is compatible with R2019b and above. It uses the new chart class feature.
## Syntax:
**spider_plot(P)**
**spider_plot(P, Name, Value, ...)**
## Input Arguments:
*(Required)*
- **P** - The data points used to plot the spider chart. The rows are the groups of data and the columns are the data points.
The axes labels and axes limits are automatically generated if not specified.
[vector | matrix]
## Name-Value Pair Arguments:
*(Optional)*
- **AxesLabels** - Used to specify the label each of the axes.
[auto-generated (default) | cell of strings | 'none']
- **AxesInterval** - Used to change the number of intervals displayed between the webs.
[3 (default) | integer]
- **AxesPrecision** - Used to change the precision level on the value displayed on the axes.
[1 (default) | integer | vector]
- **AxesDisplay** - Used to change the number of axes in which the axes text are displayed. 'None' or 'one' can be used to simplify the plot appearance for normalized data.
['all' (default) | 'none' | 'one' | 'data']
- **AxesLimits** - Used to manually set the axes limits. A matrix of 2 x size(P, 2). The top row is the minimum axes limits and the bottow row is the maximum axes limits.
[auto-scaled (default) | matrix]
- **FillOption** - Used to toggle fill color option.
['off' (default) | 'on' | cell array of character vectors]
- **FillTransparency** - Used to set fill color transparency.
[0.1 (default) | scalar in range (0, 1) | vector]
- **Color** - Used to specify the line color, specified as an RGB triplet. The intensities must be in the range (0, 1).
[MATLAB colors (default) | RGB triplet]
- **LineStyle** - Used to change the line style of the plots.
['-' (default) | '--' | ':' | '-.' | 'none' | cell array of character vectors]
- **LineWidth** - Used to change the line width, where 1 point is 1/72 of an inch.
[0.5 (default) | positive value | vector]
- **LineTransparency** - Used to set the line color transparency.
[1 (default) | scalar in range (0, 1) | vector]
- **Marker** - Used to change the marker symbol of the plots.
['o' (default) | '*' | 's' | 'd' | '+' | '.' | 'x' | '^' | 'v' | 'h' | 'none' | cell array of character vectors]
- **MarkerSize** - Used to change the marker size, where 1 point is 1/72 of an inch.
[36 (default) | positive value | vector]
- **MarkerTransparency** - Used to set the marker color transparency.
[1 (default) | scalar in range (0, 1) | vector]
- **AxesFont** - Used to change the font type of the values displayed on the axes.
[Helvetica (default) | supported font name]
- **LabelFont** - Used to change the font type of the labels.
[Helvetica (default) | supported font name]
- **AxesFontSize** - Used to change the font size of the values displayed on the axes.
[10 (default) | scalar value greater than zero]
- **AxesFontColor** - Used to change the font color of the values displayed on the axes.
[black (default) | RGB triplet]
- **LabelFontSize** - Used to change the font size of the labels.
[10 (default) | scalar value greater than zero]
- **Direction** - Used to change the direction of rotation of the plotted data and axis labels.
['clockwise' (default) | 'counterclockwise']
- **AxesDirection** - Used to change the direction of axes.
['normal' (default) | 'reverse' | cell array of character vectors]
- **AxesLabelsOffset** - Used to adjust the position offset of the axes labels.
[0.2 (default) | positive value]
- **AxesDataOffset** - Used to adjust the position offset of the data labels when AxesDisplay is set to 'data'.
[0.1 (default) | positive value]
- **AxesScaling** - Used to change the scaling of the axes.
['linear' (default) | 'log' | cell array of character vectors]
- **AxesColor** - Used to change the color of the spider axes.
[grey (default) | RGB triplet | hexadecimal color code]
- **AxesLabelsEdge** - Used to change the edge color of the axes labels.
[black (default) | RGB triplet | hexadecimal color code | 'none']
- **AxesOffset** - Used to change to axes offset from the origin.
[1 (default) | any integer less than the axes interval]
- **AxesZoom** - Used to change zoom of axes.
[0.7 (default) | scalar in range (0, 1)]
- **AxesHorzAlign** - Used to change the horizontal alignment of axes tick labels.
['center' (default) | 'left' | 'right' | 'quadrant']
- **AxesVertAlign** - Used to change the vertical aligment of axes tick labels.
['middle' (default) | 'top' | 'cap' | 'bottom' | 'baseline' | 'quadrant']
- **PlotVisible** - Used to change the visibility of the plotted lines and markers.
['on' (default) | 'off']
- **AxesTickLabels** - Used to change the axes tick labels.
['data' (default) | cell array of character vectors]
- **AxesInterpreter** - Used to change the text interpreter of axes labels and axes tick labels.
['tex' (default) | 'latex' | 'none' | cell array of character vectors]
*(spider_plot_class only properties)*
- **LegendLabels** - Used to add the labels to the legend.
[cell array of character vectors]
- **LegendHandle** - Used to customize legend settings.
[legend handle object]
- **TiledLayoutHandle** - Used to customize tiled layout settings.
[tiled chart layout handle object]
- **TiledLegendHandle** - Used to customize tiled legend settings.
[legend handle object of tiled layout]
- **NextTileIter** - Iterates with consecutive tile plots.
[1 (default)]
## Examples:
### Example 1: Minimal number of arguments. All optional arguments are set to their default values. Axes labels and limits are automatically set.
```matlab
% Initialize data points
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);
% Legend settings
legend('D1', 'D2', 'D3', 'Location', 'southoutside');
```
<p align="center">
<img src="screenshot/example1.PNG">
</p>
### Example 2: Manually setting the axes limits and axes precisi
没有合适的资源?快使用搜索试试~ 我知道了~
Matlab【花式】使用可自定义的独立轴创建蛛网图或雷达图.zip
共23个文件
png:13个
m:4个
mlx:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 89 浏览量
2023-04-15
08:43:23
上传
评论
收藏 1.78MB ZIP 举报
温馨提示
1.版本:matlab2014/2019a,内含运行结果,不会运行可私信 2.领域:智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,更多内容可点击博主头像 3.内容:标题所示,对于介绍可点击主页搜索博客 4.适合人群:本科,硕士等教研学习使用 5.博客介绍:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可si信
资源推荐
资源详情
资源评论
收起资源包目录
Matlab【花式】使用可自定义的独立轴创建蛛网图或雷达图.zip (23个子文件)
Matlab【花式】使用可自定义的独立轴创建蛛网图或雷达图
LICENSE.txt 1KB
screenshot
example8.PNG 27KB
example1.PNG 43KB
example3.PNG 40KB
example9.png 57KB
example2.png 42KB
example6.png 44KB
example5.png 33KB
example10.PNG 44KB
example7.PNG 48KB
example7b.PNG 110KB
example4.png 32KB
说明.txt 367B
spider_plot_class.m 73KB
main.m 186B
spider_plot_R2019b.m 41KB
仿真咨询.png 350KB
spider_plot_R2019b_examples.mlx 297KB
更多代码关注我.png 114KB
spider_plot_examples.mlx 273KB
spider_plot_class_examples.mlx 261KB
README.md 18KB
spider_plot.m 44KB
共 23 条
- 1
资源评论
天天Matlab科研工作室
- 粉丝: 3w+
- 资源: 7249
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功