def draw_names(canvas, name_data, lookup_names):
    '\n    Given a dict of baby name data and a list of name, plots\n    the historical trend of those names onto the canvas.\n\n    Input:\n        canvas (Tkinter Canvas): The canvas on which we are drawing.\n        name_data (dict): Dictionary holding baby name data\n        lookup_names (List[str]): A list of names whose data you want to plot\n\n    Returns:\n        This function does not return any value.\n    '
    draw_fixed_lines(canvas)
    x_previous = 0
    y_previous = 0
    for i in range(len(lookup_names)):
        name = lookup_names[i]
        color = COLORS[(i % len(COLORS))]
        for j in range(len(YEARS)):
            year = str(YEARS[j])
            x = get_x_coordinate(CANVAS_WIDTH, j)
            if (year in name_data[name]):
                rank = int(name_data[name][year])
                y = (GRAPH_MARGIN_SIZE + (((CANVAS_HEIGHT - (GRAPH_MARGIN_SIZE * 2)) / MAX_RANK) * (rank - 1)))
            else:
                rank = '*'
                y = (CANVAS_HEIGHT - GRAPH_MARGIN_SIZE)
            if (j != 0):
                canvas.create_line(x_previous, y_previous, x, y, width=LINE_WIDTH, fill=color)
            canvas.create_text((x + TEXT_DX), y, text=f'{name} {rank}', anchor=tkinter.SW, fill=color)
            x_previous = x
            y_previous = y
Given a dict of baby name data and a list of name, plots
the historical trend of those names onto the canvas.

Input:
    canvas (Tkinter Canvas): The canvas on which we are drawing.
    name_data (dict): Dictionary holding baby name data
    lookup_names (List[str]): A list of names whose data you want to plot

Returns:
    This function does not return any value.
def draw_names(canvas, name_data, lookup_names):
    '\n    Given a dict of baby name data and a list of name, plots\n    the historical trend of those names onto the canvas.\n\n    Input:\n        canvas (Tkinter Canvas): The canvas on which we are drawing.\n        name_data (dict): Dictionary holding baby name data\n        lookup_names (List[str]): A list of names whose data you want to plot\n\n    Returns:\n        This function does not return any value.\n    '
    draw_fixed_lines(canvas)
    x_previous = 0
    y_previous = 0
    for i in range(len(lookup_names)):
        name = lookup_names[i]
        color = COLORS[(i % len(COLORS))]
        for j in range(len(YEARS)):
            year = str(YEARS[j])
            x = get_x_coordinate(CANVAS_WIDTH, j)
            if (year in name_data[name]):
                rank = int(name_data[name][year])
                y = (GRAPH_MARGIN_SIZE + (((CANVAS_HEIGHT - (GRAPH_MARGIN_SIZE * 2)) / MAX_RANK) * (rank - 1)))
            else:
                rank = '*'
                y = (CANVAS_HEIGHT - GRAPH_MARGIN_SIZE)
            if (j != 0):
                canvas.create_line(x_previous, y_previous, x, y, width=LINE_WIDTH, fill=color)
            canvas.create_text((x + TEXT_DX), y, text=f'{name} {rank}', anchor=tkinter.SW, fill=color)
            x_previous = x
            y_previous = y