Skip to content

rotate

plot · scripts/plot/util/rotate.m

rotate (h, direction, alpha)
rotate (h, direction, alpha, origin)
  Rotate the line, patch and surface objects H (and the members of
  groups) by ALPHA degrees about an axis.  DIRECTION is [theta phi]
  (azimuth and elevation in degrees) or a vector [x y z]; the rotation
  follows the right-hand rule about it.  The axis passes through ORIGIN,
  by default the centre of the bounding box of the objects' data.  The
  XData, YData and ZData properties are replaced by the rotated values.