grid2 - add a grid to 2D plots

版本 1.0.0.0 (662 字节) 作者: Stefan Schuberth
This function adds a grid to a 2D plot which can be modified.
1.1K 次下载
更新时间 2005/10/21

无许可证

This function adds a grid to 2D plots. The grid contains out of lines which can be modified by linestyles and color information. This function expands the functionality of the normal grid implemented in MATLAB plots.

plot(rand(1,10));
set(gcf,'color',[1 1 1]);
grid2(gca,'color',[0.7 0.7 0.7],'linewidth',3);

引用格式

Stefan Schuberth (2025). grid2 - add a grid to 2D plots (https://ww2.mathworks.cn/matlabcentral/fileexchange/8758-grid2-add-a-grid-to-2d-plots), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14SP2
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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

Example added