You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Applications are open for the 2018 John Hunter Matplotlib Summer Fellowship. Apply now!
Version 2.2.2.post1754+g0766e5365
Fork me on GitHub



Return a direction vector.

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.

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.