View License

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

» Watch video

Highlights from
Hatched Lines and Contours

5.0 | 3 ratings Rate this file 8 Downloads (last 30 days) File Size: 134 KB File ID: #29121 Version: 1.2
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 (4)
02 May 2015 Rob McDonald

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

Glad this was of use to you.

Comment only
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 1.1

Finally added screenshot to show what this does.

18 Mar 2013 1.2

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

Contact us