def hr_diagram_figure(cluster):
temps, lums = round_teff_luminosity(cluster)<EOL>x, y = temps, lums<EOL>colors, color_mapper = hr_diagram_color_helper(temps)<EOL>x_range = [max(x) + max(x) * <NUM_LIT>, min(x) - min(x) * <NUM_LIT>]<EOL>source = ColumnDataSource(data=dict(x=x, y=y, color=colors))<EOL>pf = figure(y_axis_type='<STR_LIT>', x_range=x_range, name='<STR_LIT>',<EOL>tools='<STR_LIT>',<EOL>title='<STR_LIT>'.format(cluster.name))<EOL>pf.select(BoxSelectTool).select_every_mousemove = False<EOL>pf.select(LassoSelectTool).select_every_mousemove = False<EOL>hover = pf.select(HoverTool)[<NUM_LIT:0>]<EOL>hover.tooltips = [("<STR_LIT>", "<STR_LIT>"),<EOL>("<STR_LIT>", "<STR_LIT>")]<EOL>_diagram(source=source, plot_figure=pf, name='<STR_LIT>',<EOL>color={'<STR_LIT>': '<STR_LIT>', '<STR_LIT>': color_mapper},<EOL>xaxis_label='<STR_LIT>',<EOL>yaxis_label='<STR_LIT>')<EOL>return pf<EOL>
Given a cluster create a Bokeh plot figure creating an
H-R diagram.