def blackbody_color_vs_temperature_plot(T_list, title, filename):
    'Draw a color vs temperature plot for the given temperature range.'
    num_T = len(T_list)
    rgb_list = numpy.empty((num_T, 3))
    for i in xrange(0, num_T):
        T_i = T_list[i]
        xyz = blackbody_color(T_i)
        rgb_list[i] = colormodels.rgb_from_xyz(xyz)
    plots.color_vs_param_plot(T_list, rgb_list, title, filename, plotfunc=pylab.semilogy, tight=True, xlabel='Temperature (K)', ylabel='RGB Color')
Draw a color vs temperature plot for the given temperature range.
def blackbody_color_vs_temperature_plot(T_list, title, filename):
    
    num_T = len(T_list)
    rgb_list = numpy.empty((num_T, 3))
    for i in xrange(0, num_T):
        T_i = T_list[i]
        xyz = blackbody_color(T_i)
        rgb_list[i] = colormodels.rgb_from_xyz(xyz)
    plots.color_vs_param_plot(T_list, rgb_list, title, filename, plotfunc=pylab.semilogy, tight=True, xlabel='Temperature (K)', ylabel='RGB Color')