Offset Curve

Offset a 2D curve by a given amount
1.5K Downloads
Updated 17 Aug 2015

View License

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 (2024). Offset Curve (https://www.mathworks.com/matlabcentral/fileexchange/52496-offset-curve), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Line Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

1.1 - Slightly changed the initial collinear point removal step

1.0.0.0