gridxy2

Plots colored gridlines. (A revision to gridxy needed for imagesc plots in MATLAB 7.10)
761 Downloads
Updated 20 Jul 2010

View License

Example:
gridxy2(get(gca,'XTick'),get(gca,'YTick'), 'Color','y','Linestyle',':');
plots yellow X & Y gridlines at the same points as originally plotted on an imagesc plot.
The grid line locations can be arbitrary.
It can plot different colors for different axes, when called sequentially for each axis.
Original version hid the lines in MATLAB version 7.10.

Cite As

Carey Smith (2024). gridxy2 (https://www.mathworks.com/matlabcentral/fileexchange/28244-gridxy2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Axes Appearance in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0