Author: bugman Date: Thu Nov 21 17:16:05 2013 New Revision: 21586 URL: http://svn.gna.org/viewcvs/relax?rev=21586&view=rev Log: The relax_disp.plot_disp_curves now shows the experiment type as part of the Y-axis label. This is to allow for easy identification of the experiment when more than one is present. Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=21586&r1=21585&r2=21586&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Thu Nov 21 17:16:05 2013 @@ -1127,6 +1127,7 @@ set_labels = [] x_err_flag = False y_err_flag = False + axis_labels = [] set_colours = [] symbols = [] linetype = [] @@ -1281,11 +1282,11 @@ # Increment the graph index. graph_index += 1 - # The axis labels. - if exp_type in EXP_TYPE_LIST_CPMG: - axis_labels = ['\\qCPMG pulse train frequency (Hz)\\Q', '\\qR\\s2,eff\\N\\Q (rad.s\\S-1\\N)'] - else: - axis_labels = ['\\qSpin-lock field strength (Hz)\\Q', '\\qR\\s1\\xr\\B\\N\\Q (rad.s\\S-1\\N)'] + # The axis labels. + if exp_type in EXP_TYPE_LIST_CPMG: + axis_labels.append(['\\qCPMG pulse train frequency (Hz)\\Q', '%s - \\qR\\s2,eff\\N\\Q (rad.s\\S-1\\N)'%exp_type]) + else: + axis_labels.append(['\\qSpin-lock field strength (Hz)\\Q', '\\qR\\s1\\xr\\B\\N\\Q (rad.s\\S-1\\N)']) # Write the header. title = "Relaxation dispersion plot" @@ -1296,7 +1297,7 @@ sets.append(len(data[gi])) legend.append(False) legend[0] = True - write_xy_header(file=file, title=title, graph_num=graph_num, sets=sets, set_names=[set_labels]*graph_num, set_colours=set_colours, symbols=symbols, linetype=linetype, linestyle=linestyle, axis_labels=[axis_labels]*graph_num, legend=legend, legend_box_fill_pattern=[0]*graph_num, legend_char_size=[0.8]*graph_num) + write_xy_header(file=file, title=title, graph_num=graph_num, sets=sets, set_names=[set_labels]*graph_num, set_colours=set_colours, symbols=symbols, linetype=linetype, linestyle=linestyle, axis_labels=axis_labels, legend=legend, legend_box_fill_pattern=[0]*graph_num, legend_char_size=[0.8]*graph_num) # Write the data. graph_type = 'xy'