I am drawing a graph and it does not start from 0 for x-axis. How can I introduce a break before 169. I read help pages but it is not clear how to implement it.
Code used:
h(1)=scatter(Tab(:,2),Tab(:,14),30,'b','s','LineWidth',2,'DisplayName','ABC');
hold on;
h(2)=scatter(Tab(:,2),Tab(:,15),30,'r','+','LineWidth',2,'DisplayName','XYZ');
box on;
yline(0);
y1=get(gca,'ylim');
xlim([169.333 254]);

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 10일
편집: KALYAN ACHARJYA 2021년 2월 10일

0 개 추천

Break?
xlim([0 260])

댓글 수: 3

Milan Kumar
Milan Kumar 2021년 2월 10일
I had kept that line as a fix. The data starts from x=169. I want to introduce a break between 0 and 169.
KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 10일
Can you share any pictorial representation/image?
Milan Kumar
Milan Kumar 2021년 2월 10일

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

질문:

2021년 2월 10일

댓글:

2021년 2월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by