class_docstr: Affine transformation class
  
  Parameters
  ----------
  matrix : array-like | None
      4x4 array to use for the transform.
docstr: Scale the matrix about a given origin.
  
  The scaling is applied *after* the transformations already present
  in the matrix.
  
  Parameters
  ----------
  scale : array-like
      Scale factors along x, y and z axes.
  center : array-like or None
      The x, y and z coordinates to scale around. If None,
      (0, 0, 0) will be used.
docstr_tok: ["Scale","the","matrix","about","a","given","origin",".","The","scaling","is","applied","*","after","*","the","transformations","already","present","in","the","matrix",".","Parameters","--","--","--","--","--","scale",":","array-like","Scale","factors","along","x",",","y","and","z","axes",".","center",":","array-like","or","None","The","x",",","y","and","z","coordinates","to","scale","around",".","If","None",",","(","0",",","0",",","0",")","will","be","used","."]
code: def scale(self, scale, center=None):
      """
      Scale the matrix about a given origin.
  
      The scaling is applied *after* the transformations already present
      in the matrix.
  
      Parameters
      ----------
      scale : array-like
          Scale factors along x, y and z axes.
      center : array-like or None
          The x, y and z coordinates to scale around. If None,
          (0, 0, 0) will be used.
      """
      scale = transforms.scale(
          as_vec4(scale, default=(1, 1, 1, 1))[0, :3]
      )
      if center is not None:
          center = as_vec4(center)[0, :3]
          scale = np.dot(
              np.dot(transforms.translate(-center), scale),
              transforms.translate(center),
          )
      self.matrix = np.dot(self.matrix, scale)
  
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 10 for calling the MatrixTransform obj's underlying member method code with example usage: obj.scale(scale, center) without return types