Break X-axis

3 ビュー (過去 30 日間)
Milan Kumar
Milan Kumar 2021 年 2 月 10 日
コメント済み: Milan Kumar 2021 年 2 月 10 日
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 日
Break?
xlim([0 260])
  3 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 2 月 10 日
Can you share any pictorial representation/image?
Milan Kumar
Milan Kumar 2021 年 2 月 10 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by