- Axes3D.set_zticks(ticks, labels=None, *, minor=False, **kwargs)#
Set the zaxis' tick locations and optionally tick labels.
If necessary, the view limits of the Axis are expanded so that all given ticks are visible.
- ticks1D array-like
The values may be either floats or in axis units.
Pass an empty list to remove all ticks:
Some tick formatters will not label arbitrary tick positions; e.g. log formatters only label decade ticks by default. In such a case you can set a formatter explicitly on the axis using
Axis.set_major_formatteror provide formatted labels yourself.
- labelslist of str, optional
Tick labels for each location in ticks. labels must be of the same length as ticks. If not set, the labels are generate using the axis tick
- minorbool, default: False
False, set the major ticks; if
True, the minor ticks.
The mandatory expansion of the view limits is an intentional design choice to prevent the surprise of a non-visible tick. If you need other limits, you should set the limits explicitly after setting the ticks.