how to limit and number of points on axis or how to set desired spacing between the points

조회 수: 91(최근 30일)
Hello,
please tell how to limit the number of points on x axis( ex: suppose if there are 10 points, i want show only five points on axis OR if there 10 points i want to have the repesent the points with spacing of 3 difference).
I have six vector plots in a figure which have been created by using command subplot and i want to increase the plot area of these vector plots.
Thanks in advance.

채택된 답변

Swetha Polemoni
Swetha Polemoni 2021년 4월 18일
Hi
You can limit the number of points on x axis/ y axis using Specify Axis Limits "xlim/ylim". For setting desired spacing on x axis/ y axis you can use xticks / yticks.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by