image thumbnail

Hatch fill patterns plus Color & Invert

version (48.7 KB) by Brandon Levey
Updated code hatch with color and inverted hatches


Updated 03 Jul 2011

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This is an update of Brian Katz's update to Ben Hinkle's original applypatch and makepatch code for replacing colors in figures with hatches as well as David's applypatch_plus. This new version allows you to either make a black and white hatch or use the colors of the fill to create colored hatches. Additionally you can invert the hatch, i.e. it is possible to have a blue hatch with white background or a white hatch with blue background. All of the previous work done in the plus addition should still work, just these are now new options. See help of functions for example usage.

Cite As

Brandon Levey (2022). Hatch fill patterns plus Color & Invert (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!