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 LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Find more on Line Plots in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.