change axis of a plot

2 views (last 30 days)
joo
joo on 17 Nov 2012
does anyone know how to do broken axis* ( 0--//---- ) and also how to obligate matlab automatically to write final x value and final y value in the plots i obtain?
*this plot is simply obtained with xy data obtained in laboratory.
thank you very much

Accepted Answer

Daniel Shub
Daniel Shub on 23 Nov 2012
There are a number of good reasons to avoid these breaks, and often there are good alternatives.

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 17 Nov 2012
Edited: Azzi Abdelmalek on 17 Nov 2012
set(gca,'xtick',linspace(min(x),max(x),7),'ytick',linspace(min(y),max(y),7))
what do you mean by : how to do broken axis
  6 Comments
joo
joo on 17 Nov 2012
to plot correctly a curve the axis should be like that...
Azzi Abdelmalek
Azzi Abdelmalek on 17 Nov 2012
Edited: Azzi Abdelmalek on 23 Nov 2012
You can add two line manually with figure editor

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!