def create_canvas(dataset_observations, scale, margin):
    """
    Creates the canvas
    """
    boundaries = get_2D_bounding_box(dataset_observations)
    width = boundaries[1][0]-boundaries[0][0]
    height =  boundaries[0][1]-boundaries[1][1]
    image = Image.new('RGB', (int(width*scale+2*margin),int(height*scale+2*margin)))
    draw = ImageDraw.Draw(image)

    return (image,draw,boundaries)
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/validation/bidimensional/validationTools.py/create_canvas/swapped operands of `-`