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