setting incremental of y axis while plotting using scatter function

38 ビュー (過去 30 日間)
sermet 2016 年 2 月 18 日
コメント済み: Muhammad Altahhan 2021 年 3 月 28 日
I have several vectors for plotting using scatter function. Boundary of X axis is constant like [0:24] so I can set for this boundary with 2 increments like that;
but boundary of Y axis depends on the vector data. When I plot the vectors, increment of Y axis values seems 5. I need to make this interval more tight like 1. How can I set this interval value with using gca function?


the cyclist
the cyclist 2016 年 2 月 18 日
I'm not perfectly clear on what you are trying to do, but I think this might help:
ylim = get(gca,'YLim');
  1 件のコメント
Muhammad Altahhan
Muhammad Altahhan 2021 年 3 月 28 日
Thank you very much! This worked 👍


その他の回答 (0 件)


Community Treasure Hunt

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

Start Hunting!

Translated by