Cut out a part of a plot in the figure
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
Platform Compatibility
Windows macOS LinuxCategories
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.