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.
Marek Michalczuk (2022). 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 CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!