mosaic_plot.zip

版本 1.0.0.0 (2.0 KB) 作者: Samuel Cheng
Make a mosaic plot from 2D data
569.0 次下载
更新时间 2014/9/10

查看许可证

The function mosaic_plot makes a mosaic plot from 2D data. One could check with
http://en.wikipedia.org/wiki/Mosaic_plot for a description of mosaic plot.
The function return two outputs xm and ym, which are the x and y components of centers of boxes. They are useful if one want to label the plot.

E.g., make a mosaic plot for random data and put the percentage of box as
label

data=rand(3,4);
[xm,ym]=mosaic_plot(data);
multi_text(xm(:),ym(:),form_percentage_strings_from_array(data(:)));

引用格式

Samuel Cheng (2024). mosaic_plot.zip (https://www.mathworks.com/matlabcentral/fileexchange/47785-mosaic_plot-zip), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Contour Plots 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0