applyhatch_plusC
Editor's Note: This file was selected as MATLAB Central Pick of the Week
This is a modification of previously submitted APPLYHATCH_PLUS.
APPLYHATCH_PLUSC creates a bitmap version of the defined figure where colored elements are replaced with specified colored hatch patterns.
APPLYHATCH_PLUSC allows for the definition of colors for the hatch patterns. Color may be defined using char string or RGB values. Various examples are provided showing some possibilities of APPLYHATCH_PLUSC and MAKEHATCH_PLUS.
Note: This function is different from Brandon Levey's APPLYHATCH_PLUSCOLOR, which has slightly different functionality and syntax.
Cite As
Brian Katz (2026). applyhatch_plusC (https://www.mathworks.com/matlabcentral/fileexchange/26797-applyhatch_plusc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.5.0.0 | Improved previous dithering issues. Tested all examples on R2020b. |
||
| 1.4.0.0 | Small edits to correct reported errors.
|
||
| 1.3.0.0 | Correction to account for situations with less than 3 colors, as noted by commentors. |
||
| 1.1.0.0 | Now includes modified makehatch_plus to allow for variable thickness hatches |
||
| 1.0.0.0 |
