mpl_toolkits.mplot3d.axes3d.Axes3D.set_zticklabels#

Axes3D.set_zticklabels(labels,*,minor=False,fontdict=None,**kwargs)[source]#

[Discouraged] Set the zaxis' tick labels with list of string labels.

Discouraged

The use of this method is discouraged, because of the dependency ontick positions. In most cases, you'll want to useAxes.set_[x/y/z]ticks(positions,labels) orAxes3D.set_zticksinstead.

If you are using this method, you should always fix the tickpositions before, e.g. by usingAxes3D.set_zticks or by explicitlysetting aFixedLocator. Otherwise, ticks are free tomove and the labels may end up in unexpected positions.

Parameters:
labelssequence of str or ofTexts

Texts for labeling each tick location in the sequence set byAxes3D.set_zticks; the number of labels must match the number of locations.The labels are used as is, via aFixedFormatter (without furtherformatting).

minorbool

If True, set minor ticks instead of major ticks.

fontdictdict, optional

Discouraged

The use offontdict is discouraged. Parameters should be passed asindividual keyword arguments or using dictionary-unpackingset_ticklabels(...,**fontdict).

A dictionary controlling the appearance of the ticklabels.The defaultfontdict is:

{'fontsize':rcParams['axes.titlesize'],'fontweight':rcParams['axes.titleweight'],'verticalalignment':'baseline','horizontalalignment':loc}
**kwargs

Text properties.

Warning

This only sets the properties of the current ticks, which isonly sufficient for static plots.

Ticks are not guaranteed to be persistent. Various operationscan create, delete and modify the Tick instances. There is animminent risk that these settings can get lost if you work onthe figure further (including also panning/zooming on adisplayed figure).

Useset_tick_params instead if possible.

Returns:
list ofTexts

For each tick, includestick.label1 if it is visible, thentick.label2 if it is visible, in that order.