def set_matrix_dimensions(self, bounds, xdensity, ydensity):
self.bounds = bounds<EOL>self.xdensity = xdensity<EOL>self.ydensity = ydensity<EOL>scs = SheetCoordinateSystem(bounds, xdensity, ydensity)<EOL>for of in self.output_fns:<EOL><INDENT>if isinstance(of, TransferFn):<EOL><INDENT>of.initialize(SCS=scs, shape=scs.shape)<EOL><DEDENT><DEDENT>
Change the dimensions of the matrix into which the pattern
will be drawn.  Users of this class should call this method
rather than changing the bounds, xdensity, and ydensity
parameters directly.  Subclasses can override this method to
update any internal data structures that may depend on the
matrix dimensions.