class_docstr: Affine transformation class
  
  Parameters
  ----------
  matrix : array-like | None
      4x4 array to use for the transform.
docstr: Rotate the matrix by some angle about a given axis.
  
  The rotation is applied *after* the transformations already present
  in the matrix.
  
  Parameters
  ----------
  angle : float
      The angle of rotation, in degrees.
  axis : array-like
      The x, y and z coordinates of the axis vector to rotate around.
docstr_tok: ["Rotate","the","matrix","by","some","angle","about","a","given","axis",".","The","rotation","is","applied","*","after","*","the","transformations","already","present","in","the","matrix",".","Parameters","--","--","--","--","--","angle",":","float","The","angle","of","rotation",",","in","degrees",".","axis",":","array-like","The","x",",","y","and","z","coordinates","of","the","axis","vector","to","rotate","around","."]
code: def rotate(self, angle, axis):
      """
      Rotate the matrix by some angle about a given axis.
  
      The rotation is applied *after* the transformations already present
      in the matrix.
  
      Parameters
      ----------
      angle : float
          The angle of rotation, in degrees.
      axis : array-like
          The x, y and z coordinates of the axis vector to rotate around.
      """
      self.matrix = np.dot(self.matrix, transforms.rotate(angle, axis))
  
imports: from __future__ import division
  import numpy
  from ...util import transforms
  from ...geometry import Rect
  from ._util import arg_to_vec4, as_vec4
  from .base_transform import BaseTransform
label_desc: Use image node_id 11 for calling the MatrixTransform obj's underlying member method code with example usage: obj.rotate(angle, axis) without return types