You are reading an old version of the documentation (v3.0.0). For the latest version see https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.art3d.get_dir_vector.html
Version 3.0.0
matplotlib
Fork me on GitHub

mpl_toolkits.mplot3d.art3d.get_dir_vector

mpl_toolkits.mplot3d.art3d.get_dir_vector(zdir)[source]

Return a direction vector.

Parameters:
zdir : {'x', 'y', 'z', None, 3-tuple}

The direction. Possible values are: - 'x': equivalent to (1, 0, 0) - 'y': euqivalent to (0, 1, 0) - 'z': equivalent to (0, 0, 1) - None: euqivalent to (0, 0, 0) - an iterable (x, y, z) is returned unchanged.

Returns:
x, y, z : array-like

The direction vector. This is either a numpy.array or zdir itself if zdir is already a length-3 iterable.