示例#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)
示例#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)
示例#3
0
文件: plots.py 项目: davidreber/Labs
def rotate():
    fig = plotOldNew(pts, solutions.rotate(pts, np.pi/3.), "Rotate")
    fig.savefig("rotate.pdf")
    plt.close(fig.number)
示例#4
0
 def test_rotate(self, array, npos, expected):
     result = solutions.rotate(array, npos)
     self.assertListEqual(result, expected)
示例#5
0
文件: tests.py 项目: hkmshb/tqconsult
 def test_rotate(self, array, npos, expected):
     result = solutions.rotate(array, npos)
     self.assertListEqual(result, expected)
示例#6
0
def rotated(data, theta):
    pixel_picture(solutions.rotate(data, theta), "Rotation", top=False)
示例#7
0
def rotate():
    fig = plotOldNew(pts, solutions.rotate(pts, np.pi / 3.), "Rotate")
    fig.savefig("rotate.pdf")
    plt.close(fig.number)
示例#8
0
def rotated(data, theta):
    pixel_picture(solutions.rotate(data, theta), "Rotation", top=False)