File Exchange

image thumbnail

Hatched Lines and Contours

version 1.2 (134 KB) by

Draw lines and contours with hatches on one side of the line.



View License

These routines allow easy plotting of lines or contours with hatches on one side. This line style is often used to represent a constraint, where one side of the line represents a no-go area.

Comments and Ratings (4)

Rob McDonald

Theo - Quite correct, that is a bad habit left over from long ago.

Glad this was of use to you.


Theo (view profile)

Very helpful. The only question I had was, in the example.m code, you use "c1=ocontourc(x1,x2',con1',[0 1e6]);" Why [0 1e6]? Should this not be [0 0]? It creates some artifacts near the origin.

OUC Polar

matt dash

matt dash (view profile)



Added ocontourc, a version of contourc which always results in consistently oriented contours.


Finally added screenshot to show what this does.

MATLAB Release
MATLAB 7 (R14)

Inspired: Carpet Plot Toolkit, The carpetplot class

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video