Exemplo n.º 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)
Exemplo n.º 2
0
def combo():
    p = solutions.shear(pts, -1.02, .5)
    p = solutions.translate(p, np.array([-2, .5]))
    p = solutions.reflect(p, np.array([-2, .5]))
    
    fig = plotOldNew(pts, p, "General Affine")
    fig.savefig("combo.pdf")
    plt.close(fig.number)
Exemplo n.º 3
0
def combo():
    p = solutions.shear(pts, -1.02, .5)
    p = solutions.translate(p, np.array([-2, .5]))
    p = solutions.reflect(p, np.array([-2, .5]))

    fig = plotOldNew(pts, p, "General Affine")
    fig.savefig("combo.pdf")
    plt.close(fig.number)
Exemplo n.º 4
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)
Exemplo n.º 5
0
def shear():
    fig = plotOldNew(pts, solutions.shear(pts, 1.02, 0), "Shear")
    fig.savefig("shear.pdf")
    plt.close(fig.number)
Exemplo n.º 6
0
def sheared(data, a, b):
    pixel_picture(solutions.shear(data, a, b), "Shear", top=True)
Exemplo n.º 7
0
def shear():
    fig = plotOldNew(pts, solutions.shear(pts, 1.02, 0), "Shear")
    fig.savefig("shear.pdf")
    plt.close(fig.number)
Exemplo n.º 8
0
def sheared(data, a, b):
    pixel_picture(solutions.shear(data, a, b), "Shear", top=True)