# right-multiply a 2x2 matrix to a 2x100 matrix to transform the points X = np.dot(np.random.randn(100, 2), np.random.rand(2, 2)) # scale data X = StandardScaler().fit_transform(X)