示例#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
文件: plots.py 项目: davidreber/Labs
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)
示例#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)
示例#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)
示例#5
0
文件: plots.py 项目: davidreber/Labs
def reflect():
    fig = plotOldNew(pts, solutions.reflect(pts, np.sqrt(np.array([3, 1]))), "Reflect")
    fig.savefig("reflect.pdf")
    plt.close(fig.number)
示例#6
0
def reflected(data, a, b):
    pixel_picture(solutions.reflect(data, a, b), "Reflection", top=False)
示例#7
0
def reflect():
    fig = plotOldNew(pts, solutions.reflect(pts, np.sqrt(np.array([3, 1]))),
                     "Reflect")
    fig.savefig("reflect.pdf")
    plt.close(fig.number)
示例#8
0
def reflected(data, a, b):
    pixel_picture(solutions.reflect(data, a, b), "Reflection", top=False)