Updated 27 Sep 2010
This is basically a wrapper to the pcolor routine which pads the arrays passed to pcolor so that the full array is plotted. It also centers the ticks on the pixels rather than on the edges. The EdgeColor is set to 'none.' This is good for plotting data on a grid when you don't want any interpolation.
The function can handle the X and Y axis arrays being passed as 1-D arrays or 2-D ones.
Samuel Lazerson (2023). pixplot (https://www.mathworks.com/matlabcentral/fileexchange/28714-pixplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- MATLAB > Graphics > 2-D and 3-D Plots > Contour Plots >
Inspired: vecslice, Offsets and missing data via pcolor and surf, matlabEXTENDER
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.