Author: bugman Date: Thu Nov 21 17:10:30 2013 New Revision: 21585 URL: http://svn.gna.org/viewcvs/relax?rev=21585&view=rev Log: Fixes for the relax_disp.plot_exp_curves user function for the lib.software.grace changes. 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=21585&r1=21584&r2=21585&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:10:30 2013 @@ -1418,16 +1418,17 @@ axis_labels = ['Relaxation time period (s)', 'Peak intensities'] # Write the header. + graph_num = len(data) sets = [] - for gi in range(len(data)): + for gi in range(graph_num): sets.append(len(data[gi])) - write_xy_header(sets=sets, file=file, set_names=[set_labels], axis_labels=[axis_labels], norm=[norm]) + write_xy_header(file=file, graph_num=graph_num, sets=sets, set_names=[set_labels]*graph_num, axis_labels=[axis_labels]*graph_num, norm=[norm]*graph_num) # Write the data. graph_type = 'xy' if err: graph_type = 'xydy' - write_xy_data(data, file=file, graph_type=graph_type, norm=[norm]) + write_xy_data(data, file=file, graph_type=graph_type, norm=[norm]*graph_num) # Close the file. file.close()