BreakAxis
Nessuna licenza
BreakPlot(x,y,y_break_start,y_break_end,break_type)
Produces a plot who's y-axis skips to avoid unecessary blank space
INPUT
x
y
y_break_start
y_break_end
break_type
   if break_type='RPatch' the plot will look torn
      in the broken space
   if break_type='Patch' the plot will have a more
      regular, zig-zag tear
   if break_plot='Line' the plot will merely have
      some hash marks on the y-axis to denote the
      break
USAGE:
figure;
BreakPlot(rand(1,21),[1:10,40:50],10,40,'Line');
figure;
BreakPlot(rand(1,21),[1:10,40:50],10,40,'Patch');
figure;
BreakPlot(rand(1,21),[1:10,40:50],10,40,'RPatch');
figure;
x=rand(1,21);y=[1:10,40:50];
subplot(2,1,1);plot(x(y>=40),y(y>=40),'.');
set(gca,'XTickLabel',[]);
subplot(2,1,2);plot(x(y<=20),y(y<=20),'.');%
IT'S NOT FANCY, BUT IT WORKS.
Cita come
Michael Robbins (2025). BreakAxis (https://it.mathworks.com/matlabcentral/fileexchange/3668-breakaxis), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Graphics > Labels and Styling > Axes Appearance >
 - MATLAB > Graphics > Labels and Styling > Labels and Annotations > Axis Labels >
 
Tag
Riconoscimenti
Ispirato: BreakXAxis, Break Bar Plot, BreakPlot, Break X Axis, Break Y Axis
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 | 
