No BSD License
5.0
by Michael Robbins
22 Oct 2008 (Updated 12 Nov 2008)
Produces a plot who's y-axis skips to avoid unnecessary blank space
This file was selected as MATLAB Central Pick of the Week
| Watch this File
Produces a plot who's y-axis skips to avoid unecesary blank space
Replaces BREAKAXIS
The author wishes to acknowledge the following in the creation of this submission: BreakAxis
Nice function, Michael. I can see this will be very useful.
I found some bugs, though. Try this example:
sampleTimes = [1:200]; RPM = [600+rand(1,100)*500, 9000+rand(1,100)*2500]; breakplot(sampleTimes, RPM, 1500, 8500, 'Line');
I get an error in line 142 with the RESHAPE function.
One question, I don't quite understand the reasoning behind how you get the yticklabel. Can't you simply do this?
set(gca, 'yticklabel', num2str(ytick'));
Works very well for my purpose. Most powerfull from my point of vue than breakxaxis for y-axis breaking
I instituted Jiro Doke's kind bug fix.
Contact us at files@mathworks.com