customGrid

版本 1.2.0.0 (90.8 KB) 作者: Phil
Adds a customisable grid to a 2D plot
565.0 次下载
更新时间 2015/2/20

查看许可证

Enables the custom setting of the position of an axes grid lines on a 2D plot. Grid lines can be arbitrary placed on figure axes with customisable colour, width, line styles and alpha. The user can also supply a set of X and Y points to define their own grid lines, e.g. at 45 degrees or curved grids.
To enable alpha blending of the lines in order to mimic Matlab's grid function the lines are drawn as the edges of patches using Brett Shoelson's patchline function. This was released for Matlab 2012 and providing this works, there is no reason this function should not work in earlier versions of Matlab.

引用格式

Phil (2024). customGrid (https://www.mathworks.com/matlabcentral/fileexchange/48709-customgrid), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息
标签 添加标签
致谢

参考作品: Patchline

Community Treasure Hunt

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

Start Hunting!

html/

版本 已发布 发行说明
1.2.0.0

Now works with older versions of Matlab since I removed the dependency on the new graphics handle classes.

1.1.0.0

Updated description

1.0.0.0