Exemple #1
0
def combo(data, a1, b1, a2, b2, a3, b3, theta):
    pixel_picture(solutions.rotate(
        solutions.reflect(
            solutions.shear(solutions.stretch(data, a1, b1), a2, b2), a3, b3),
        theta),
                  "Composition",
                  top=False)
Exemple #2
0
def combo(data, a1, b1, a2, b2, a3, b3, theta):
    pixel_picture(
        solutions.rotate(
            solutions.reflect(
                solutions.shear(
                    solutions.stretch(data, a1, b1),
                a2, b2),
            a3, b3),
        theta),
    "Composition", top=False)
Exemple #3
0
def rotate():
    fig = plotOldNew(pts, solutions.rotate(pts, np.pi/3.), "Rotate")
    fig.savefig("rotate.pdf")
    plt.close(fig.number)
Exemple #4
0
 def test_rotate(self, array, npos, expected):
     result = solutions.rotate(array, npos)
     self.assertListEqual(result, expected)
Exemple #5
0
 def test_rotate(self, array, npos, expected):
     result = solutions.rotate(array, npos)
     self.assertListEqual(result, expected)
Exemple #6
0
def rotated(data, theta):
    pixel_picture(solutions.rotate(data, theta), "Rotation", top=False)
def rotate():
    fig = plotOldNew(pts, solutions.rotate(pts, np.pi / 3.), "Rotate")
    fig.savefig("rotate.pdf")
    plt.close(fig.number)
Exemple #8
0
def rotated(data, theta):
    pixel_picture(solutions.rotate(data, theta), "Rotation", top=False)