image thumbnail

Cut out a part of a plot in the figure

version 2.0.0.0 (1.78 KB) by Marek Michalczuk
You can use ‘cutout’ function to cut some part of your plot out.

204 Downloads

Updated 07 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 (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
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!