def chart_page(ctx, dots, color=(0,0,0,1)): fb = CairoFB(ctx, inch) fb.base_color = color x = inch * 0.75 y = inch * 0.75 for i in range(len(dots)): fb.draw(x, y + (i * (2 * inch)), dots[i]) ctx.show_page()
def chart_page(ctx, dots, color=(0, 0, 0, 1)): fb = CairoFB(ctx, inch) fb.base_color = color fb.u_height = 1.0 fb.u_width = 5.75 x = inch * 1.5 y = inch * 1.0 for i in range(len(dots)): fb.draw(x, y + (i * (1.3 * inch)), dots[i]) ctx.show_page()