Offset Curve

Offset a 2D curve by a given amount

You are now following this Submission

This function offsets a 2D curve by a given amount. If your curve is plotted, you can also pass the parent axis handle and offset by a given number of points, and it will respect the on-screen proportions.
This was initially developed to convert thick lines into patch objects before printing to eps to avoid problems with self-overlapping curves.

Cite As

Joss Duchateau (2026). Offset Curve (https://uk.mathworks.com/matlabcentral/fileexchange/52496-offset-curve), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

1.1 - Slightly changed the initial collinear point removal step

1.0.0.0