No BSD License  

5.0

5.0 | 2 ratings Rate this file 55 Downloads (last 30 days) File Size: 3.93 KB File ID: #21864
image thumbnail

BreakPlot

by

 

22 Oct 2008 (Updated )

Produces a plot who's y-axis skips to avoid unnecessary blank space

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

Produces a plot who's y-axis skips to avoid unecesary blank space

Replaces BREAKAXIS

Acknowledgements

Break Axis inspired this file.

This file inspired Break X Axis and Break Y Axis.

MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
10 Oct 2012 Ganquan Mao

Very nice

17 Aug 2011 Aurélien BERTIN

Works very well for my purpose. Most powerfull from my point of vue than breakxaxis for y-axis breaking

11 Nov 2008 Jiro Doke

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'));

Updates
12 Nov 2008

I instituted Jiro Doke's kind bug fix.

Contact us