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

31 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Swetha Polemoni
Swetha Polemoni il 18 Apr 2021
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.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by