def plot_intrinsic(X, w, h): svg = MYSVGWriter(640, 480, -100, -100, 100, 100) x_prev, y_prev = None, None for row in X: x= 10**1*row[0] #to scale data y= 10**1*row[1] #to scale data svg.dot(x ,y,1, 0x008080) if x_prev and y_prev: svg.line(x_prev, y_prev, x, y, .05, 0xc0c0c0) x_prev=x y_prev=y svg.svgprint("intrinsic.svg")