예제 #1
0
def table_plot(n):
    "Paint the table"
    print('Painting table of ', n)
    t = table_of(n)
    img = paint_image(t)
    print('Saving masterpiece')
    img.save('plots/table_of_' + str(n) + '.jpg')
예제 #2
0
파일: make.py 프로젝트: ixtel/ulam-spiral-1
def plot_prime(start=0, base='./', count=[]):
    prime = get_prime()
    img = paint_image(prime)
    print('Saving the masterpiece')
    count.append(True)
    c = str(len(count))
    img.save(base + 'prime_plot' + c + '.jpg')
예제 #3
0
def plot_prime(start=0, base='./', count=[]):
    prime = get_prime()
    img = paint_image(prime)
    print('Saving the masterpiece')
    count.append(True)
    c = str(len(count))
    img.save(base + 'prime_plot' + c + '.jpg')
예제 #4
0
def plot_prime():
    prime = get_prime()
    img = paint_image(prime)
    print('Saving the masterpiece')
    img.save('plots/prime_plot.jpg')
예제 #5
0
def fibo_plot():
    fibonacci = fibo()
    img = paint_image(fibonacci)
    print('Saving the masterpiece')
    img.save('plots/fibo_plot.jpg')
예제 #6
0
def fibo_plot():
    fibonacci = fibo()
    img = paint_image(fibonacci)
    print('Saving the masterpiece')
    img.save('plots/fibo_plot.jpg')