How can I create a break in the y-axis (looking like a flash; example below)?
14 views (last 30 days)
Show older comments
Hello community members,
I would be glad to get some help in order to create a break in the y-axis looking like the example below.
I've seen related posts concerning this topic, yet I've not been able to achieve the desired result myself.
All the best,
Max

5 Comments
Adam Danz
on 3 Sep 2020
You may have to also vertically scale the data unless the tick intervals are the same below and above the break. If data are plotted below the break I would recommend using two axes that share a border. That way you don't have to deal with setting tick labels that don't match the actual ticks.
J. Alex Lee
on 3 Sep 2020
ah yes, that makes more sense Adam! An alternative is to use yyaxis. Of course at this point we're deviating a bit from the original request, and our combined advice seems to be to just set the lower y axis limit to some value other than zero.
Answers (1)
Bjorn Gustavsson
on 3 Sep 2020
There are several options on the File Exchange that claims to do exactly what you want. Have a look:
Tust a lazy man's advice: start every matlab-programming task/project with a File Exchange search!
HTH
0 Comments
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!