def blackbody_patch_plot(T_list, title, filename):
    'Draw a patch plot of blackbody colors for the given temperature range.'
    xyz_colors = []
    color_names = []
    for Ti in T_list:
        xyz = blackbody_color(Ti)
        xyz_colors.append(xyz)
        name = ('%g K' % Ti)
        color_names.append(name)
    plots.xyz_patch_plot(xyz_colors, color_names, title, filename)
Draw a patch plot of blackbody colors for the given temperature range.
def blackbody_patch_plot(T_list, title, filename):
    
    xyz_colors = []
    color_names = []
    for Ti in T_list:
        xyz = blackbody_color(Ti)
        xyz_colors.append(xyz)
        name = ('%g K' % Ti)
        color_names.append(name)
    plots.xyz_patch_plot(xyz_colors, color_names, title, filename)