コード例 #1
0
ファイル: plots.py プロジェクト: koafisher/Lab-Development
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
ファイル: tests.py プロジェクト: kandytech/tqconsult
 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
ファイル: plots.py プロジェクト: koafisher/Lab-Development
def rotated(data, theta):
    pixel_picture(solutions.rotate(data, theta), "Rotation", top=False)
コード例 #7
0
ファイル: plots.py プロジェクト: lnsongxf/numerical_computing
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)