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)
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)
def rotate(): fig = plotOldNew(pts, solutions.rotate(pts, np.pi/3.), "Rotate") fig.savefig("rotate.pdf") plt.close(fig.number)
def test_rotate(self, array, npos, expected): result = solutions.rotate(array, npos) self.assertListEqual(result, expected)
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)