No BSD License  

Highlights from
BreakPlot

5.0

5.0 | 1 rating Rate this file 29 Downloads (last 30 days) File Size: 3.93 KB File ID: #21864
image thumbnail

BreakPlot

by Michael Robbins

 

22 Oct 2008 (Updated 12 Nov 2008)

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

The author wishes to acknowledge the following in the creation of this submission:
BreakAxis

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
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'));

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

Please login to add a comment or rating.
Updates
12 Nov 2008

I instituted Jiro Doke's kind bug fix.

Tag Activity for this File
Tag Applied By Date/Time
axis Michael Robbins 23 Oct 2008 16:01:21
break Michael Robbins 23 Oct 2008 16:01:21
graph Michael Robbins 23 Oct 2008 16:01:21
graph types Michael Robbins 23 Oct 2008 16:01:21
plot Michael Robbins 23 Oct 2008 16:01:21
specialized Michael Robbins 23 Oct 2008 16:01:21
plotting Michael Robbins 23 Oct 2008 16:01:21
axis Cristina McIntire 13 Nov 2008 14:20:50
specialized Cristina McIntire 13 Nov 2008 14:20:50
plot Cristina McIntire 13 Nov 2008 14:20:50
graph Cristina McIntire 13 Nov 2008 14:20:50
potw Cristina McIntire 10 Dec 2008 16:05:41
potw Shari Freedman 20 Apr 2009 13:50:19
axis Matthias 19 Mar 2010 09:53:24
pick of the week Jiro Doke 11 Feb 2011 20:12:56
break Ameur 21 Sep 2011 14:30:58

Contact us at files@mathworks.com