GRIDXY

バージョン 2.4.0.0 (3.71 KB) 作成者: Jos (10584)
Plot horizontal / vertical grid reference lines
ダウンロード: 17.5K
更新 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) (2025). GRIDXY (https://jp.mathworks.com/matlabcentral/fileexchange/9973-gridxy), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2017b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersGrid Lines, Tick Values, and Labels についてさらに検索
謝辞

ヒントを与えたファイル: REFLINEXY, ecopath_matlab: A Matlab implementation of Ecopath

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