def draw_point_into_canvas(dataset_observations, i, draw, scale, margin, color, boundaries, print_number, shape_function = None):
    """
    Draws dataset observation 'i' in the canvas, with color = 'color'
    """
    position = ((dataset_observations[i][0] - boundaries[0][0])*scale+margin,(dataset_observations[i][1] - boundaries[0][1])*scale+margin)

    if print_number:
        draw.text(position, str(i),fill=color)

    if shape_function is None :
        draw.point(position)
    else:
        boundaries = (int((0.5*scale))-position[0],position[1]-int((0.5*scale)),
                    position[0]+int((0.5*scale)),position[1]+int((0.5*scale)))
        shape_function(draw, boundaries, color)
    return position
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/validation/bidimensional/validationTools.py/draw_point_into_canvas/swapped operands of `-`