MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / rotate_axes

Function rotate_axes

lib/mpl_toolkits/mplot3d/art3d.py:1595–1606  ·  view source on GitHub ↗

Reorder coordinates so that the axes are rotated with *zdir* along the original z axis. Prepending the axis with a '-' does the inverse transform, so *zdir* can be 'x', '-x', 'y', '-y', 'z' or '-z'.

(xs, ys, zs, zdir)

Source from the content-addressed store, hash-verified

1593
1594
1595def rotate_axes(xs, ys, zs, zdir):
1596 """
1597 Reorder coordinates so that the axes are rotated with *zdir* along
1598 the original z axis. Prepending the axis with a '-' does the
1599 inverse transform, so *zdir* can be 'x', '-x', 'y', '-y', 'z' or '-z'.
1600 """
1601 if zdir in ('x', '-y'):
1602 return ys, zs, xs
1603 elif zdir in ('-x', 'y'):
1604 return zs, xs, ys
1605 else:
1606 return xs, ys, zs
1607
1608
1609def _zalpha(

Callers 1

juggle_axesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…