Code covered by the BSD License  

Highlights from
Hatched Lines and Contours

5.0 | 3 ratings Rate this file 11 Downloads (last 30 days) File Size: 134 KB File ID: #29121
image thumbnail

Hatched Lines and Contours



24 Oct 2010 (Updated )

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

| Watch this File

File Information

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.


This file inspired Carpet Plot Toolkit and The Carpetplot Class.

MATLAB release MATLAB 7 (R14)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
26 Apr 2015 Theo

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.

05 Jun 2014 OUC Polar  
05 Jun 2012 matt dash

matt dash (view profile)

19 Feb 2013

Finally added screenshot to show what this does.

18 Mar 2013

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

Contact us