GRIDXY

版本 2.4.0.0 (3.7 KB) 作者: Jos (10584)
Plot horizontal / vertical grid reference lines
17.4K 次下载
更新时间 2017/12/11

查看许可证

GRIDXY(X) plots vertical grid lines at the positions specified by X. GRIDXY(X,Y) also plots horizontal grid lines at the positions specified by Y. GRIDXY(..., 'Prop1','Val1','Prop2','Val2', ...) uses the properties and values specified for color, linestyle, etc.
Examples:
plot(10*rand(100,1), 10*rand(100,1),'bo') ; % random points
gridxy([1.1 3.2 4.5],'Color','r','Linestyle',':') ; % horizontal red dashed grid
h = gridxy([],[2.1:0.7:5 8],'Color',[0.9 1.0 0.2],'linewidth',3) ; % vertical solid thicker yellowish grid, and store the handle

GRIDXY can be used to plot a irregular grid on the axes.

引用格式

Jos (10584) (2024). GRIDXY (https://www.mathworks.com/matlabcentral/fileexchange/9973-gridxy), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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

updated to accommodate style of newer releases of matlab

1.0.0.0

to put gridlines behind tick marks