Skip to content

xticks

Get or set x-axis tick locations.

xticks
xticks(values)

Without arguments, returns the current x-tick locations as a vector. With a numeric values vector, sets the x-axis tick locations. Pass 'auto' to revert to automatic tick placement.

xticks(0:5:50)
  • yticks — Get or set y-axis tick locations.
  • zticks — Get or set z-axis tick locations.
  • xticklabels — Get or set x-axis tick labels.