How can I set different intervals of y axes limits for the same curve?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have the following set of data:
x=[1:10];
y=[1:8, 90 92];
I want to plot (x,y) in order to highlight both the variability within 0 and 10, and the variability within 85 and 95. I would need to draw two intervals of the y axis on the same plot, such as ylim([0 10]...[85 95]), but it doesn't seem to be possible. Any help?
채택된 답변
Namita Vishnubhotla
2014년 7월 22일
You can use the “BreakPlot” function to plot data that span two distinct ranges of your dependent variable. The function allows you to break the y-axis to reflect the different ranges.
Follow this link for a File Exchange article on BreakPlot:
추가 답변 (1개)
li jiaxing
2017년 6월 27일
Did you solve your problem? I have this problem now and I get the figure using Originlab software. But I want to solve it in matlab, can you help me?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!