How to reduce the space between Yticks?

2 ビュー (過去 30 日間)
Hari krishnan
Hari krishnan 2018 年 11 月 6 日
編集済み: madhan ravi 2018 年 11 月 6 日
Hi, I am plotting a scatter plot with two groups on the Y axis. I want to reduce the distance between these groups in the plot as i only have two groups. Any help to solve this will be appreciated.

採用された回答

madhan ravi
madhan ravi 2018 年 11 月 6 日
編集済み: madhan ravi 2018 年 11 月 6 日
ylim([0 2])
yticks([0 2])
or
set(gca,'YTick',0:0.5:2)
  1 件のコメント
madhan ravi
madhan ravi 2018 年 11 月 6 日
編集済み: madhan ravi 2018 年 11 月 6 日
not sure what you want from the above? or try plotyy()

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by