def figures(): '''Create some blackbody plots.''' # patch plots T_list_0 = plots.log_interpolate(1200.0, 20000.0, 48) T_list_hot = plots.log_interpolate(10000.0, 40000.0, 24) T_list_cool = plots.log_interpolate(950.0, 1200.0, 24) blackbody_patch_plot(T_list_0, 'Blackbody Colors', 'Blackbody-Patch') blackbody_patch_plot(T_list_hot, 'Hot Blackbody Colors', 'Blackbody-HotPatch') blackbody_patch_plot(T_list_cool, 'Cool Blackbody Colors', 'Blackbody-CoolPatch') # color vs temperature blackbody_color_vs_temperature_plot(range(1200, 16000, 50), 'Blackbody Colors', 'Blackbody-Colors') blackbody_color_vs_temperature_plot(range(10000, 40000, 100), 'Hot Blackbody Colors', 'Blackbody-HotColors') blackbody_color_vs_temperature_plot(range(950, 1200, 1), 'Cool Blackbody Colors', 'Blackbody-CoolColors') # spectrum of specific temperatures blackbody_spectrum_plot(2000.0) blackbody_spectrum_plot(3000.0) # Proxima Centauri blackbody_spectrum_plot(SUN_TEMPERATURE) # Sun blackbody_spectrum_plot(11000.0) # Rigel blackbody_spectrum_plot(15000.0)
def figures(): '''Create some blackbody plots.''' # Some patch plots. T_norm = plots.log_interpolate(1200.0, 20000.0, 48) T_hot = plots.log_interpolate(10000.0, 40000.0, 24) T_cool = plots.log_interpolate(950.0, 1200.0, 24) blackbody_patch_plot(T_norm, 'Blackbody Colors', 'Blackbody-Patch') blackbody_patch_plot(T_hot, 'Hot Blackbody Colors', 'Blackbody-HotPatch') blackbody_patch_plot(T_cool, 'Cool Blackbody Colors', 'Blackbody-CoolPatch') # Color vs temperature. T_norm = numpy.linspace(1200.0, 16000.0, 300) T_hot = numpy.linspace(10000.0, 40000.0, 300) T_cool = numpy.linspace(950.0, 1200.0, 300) blackbody_color_vs_temperature_plot(T_norm, 'Blackbody Colors', 'Blackbody-Colors') blackbody_color_vs_temperature_plot(T_hot, 'Hot Blackbody Colors', 'Blackbody-HotColors') blackbody_color_vs_temperature_plot(T_cool, 'Cool Blackbody Colors', 'Blackbody-CoolColors') # Spectrum for some specific temperatures. blackbody_spectrum_plot(2000.0) blackbody_spectrum_plot(3000.0) # Proxima Centauri. blackbody_spectrum_plot(SUN_TEMPERATURE) # Sun. blackbody_spectrum_plot(11000.0) # Rigel. blackbody_spectrum_plot(15000.0)
def figures (): '''Create some blackbody plots.''' # patch plots T_list_0 = plots.log_interpolate ( 1200.0, 20000.0, 48) T_list_hot = plots.log_interpolate (10000.0, 40000.0, 24) T_list_cool = plots.log_interpolate ( 950.0, 1200.0, 24) blackbody_patch_plot (T_list_0, 'Blackbody Colors', 'Blackbody-Patch') blackbody_patch_plot (T_list_hot, 'Hot Blackbody Colors', 'Blackbody-HotPatch') blackbody_patch_plot (T_list_cool, 'Cool Blackbody Colors', 'Blackbody-CoolPatch') # color vs temperature blackbody_color_vs_temperature_plot (range (1200, 16000, 50), 'Blackbody Colors', 'Blackbody-Colors') blackbody_color_vs_temperature_plot (range (10000, 40000, 100), 'Hot Blackbody Colors', 'Blackbody-HotColors') blackbody_color_vs_temperature_plot (range (950, 1200, 1), 'Cool Blackbody Colors', 'Blackbody-CoolColors') # spectrum of specific temperatures blackbody_spectrum_plot (2000.0) blackbody_spectrum_plot (3000.0) # Proxima Centauri blackbody_spectrum_plot (SUN_TEMPERATURE) # Sun blackbody_spectrum_plot (11000.0) # Rigel blackbody_spectrum_plot (15000.0)
def figures (): '''Create some blackbody plots.''' # Some patch plots. T_norm = plots.log_interpolate ( 1200.0, 20000.0, 48) T_hot = plots.log_interpolate (10000.0, 40000.0, 24) T_cool = plots.log_interpolate ( 950.0, 1200.0, 24) blackbody_patch_plot (T_norm, 'Blackbody Colors', 'Blackbody-Patch') blackbody_patch_plot (T_hot, 'Hot Blackbody Colors', 'Blackbody-HotPatch') blackbody_patch_plot (T_cool, 'Cool Blackbody Colors', 'Blackbody-CoolPatch') # Color vs temperature. T_norm = numpy.linspace( 1200.0, 16000.0, 300) T_hot = numpy.linspace(10000.0, 40000.0, 300) T_cool = numpy.linspace( 950.0, 1200.0, 300) blackbody_color_vs_temperature_plot (T_norm, 'Blackbody Colors', 'Blackbody-Colors') blackbody_color_vs_temperature_plot (T_hot, 'Hot Blackbody Colors', 'Blackbody-HotColors') blackbody_color_vs_temperature_plot (T_cool, 'Cool Blackbody Colors', 'Blackbody-CoolColors') # Spectrum for some specific temperatures. blackbody_spectrum_plot (2000.0) blackbody_spectrum_plot (3000.0) # Proxima Centauri. blackbody_spectrum_plot (SUN_TEMPERATURE) # Sun. blackbody_spectrum_plot (11000.0) # Rigel. blackbody_spectrum_plot (15000.0)