Cut out a part of a plot in the figure

You can use ‘cutout’ function to cut some part of your plot out.
303 Downloads
Updated 7 Mar 2019

View License

You can use ‘cutout’ function to cut some part of your plot out.
Firstly, make your figure and set axes properties as you desire, then run ‘cutout’ function.
Adjusting something on the 'x' axis after the cut will be embarrassing.
The function does not check the correctness of the input parameters, so you are responsible for providing sensible input.
Suggestions for corrections are welcome.

Cite As

Marek Michalczuk (2024). Cut out a part of a plot in the figure (https://www.mathworks.com/matlabcentral/fileexchange/67683-cut-out-a-part-of-a-plot-in-the-figure), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Visual Exploration 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
2.0.0.0

Fixed the fault that muhkuhmw wrote about.

1.1.0.0

note1