Example #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')
Example #2
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')
Example #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')
Example #4
0
def plot_prime():
    prime = get_prime()
    img = paint_image(prime)
    print('Saving the masterpiece')
    img.save('plots/prime_plot.jpg')
Example #5
0
def fibo_plot():
    fibonacci = fibo()
    img = paint_image(fibonacci)
    print('Saving the masterpiece')
    img.save('plots/fibo_plot.jpg')
Example #6
0
def fibo_plot():
    fibonacci = fibo()
    img = paint_image(fibonacci)
    print('Saving the masterpiece')
    img.save('plots/fibo_plot.jpg')