Author: tlinnet Date: Tue Jul 29 10:25:01 2014 New Revision: 24794 URL: http://svn.gna.org/viewcvs/relax?rev=24794&view=rev Log: Replaced the spin info string in the title of graphs, with the new function method. sr #3124(https://gna.org/support/?3124): Grace graphs production for R1rho analysis with R2_eff as function of Omega_eff. sr #3138(https://gna.org/support/?3138): Interpolating theta through spin-lock offset [Omega], rather than spin-lock field strength [w1]. Modified: branches/r1rho_plotting/specific_analyses/relax_disp/data.py Modified: branches/r1rho_plotting/specific_analyses/relax_disp/data.py URL: http://svn.gna.org/viewcvs/relax/branches/r1rho_plotting/specific_analyses/relax_disp/data.py?rev=24794&r1=24793&r2=24794&view=diff ============================================================================== --- branches/r1rho_plotting/specific_analyses/relax_disp/data.py (original) +++ branches/r1rho_plotting/specific_analyses/relax_disp/data.py Tue Jul 29 10:25:01 2014 @@ -69,7 +69,7 @@ from lib.software.grace import write_xy_data, write_xy_header, script_grace2images from lib.warnings import RelaxWarning, RelaxNoSpinWarning from pipe_control import pipes -from pipe_control.mol_res_spin import check_mol_res_spin_data, exists_mol_res_spin_data, generate_spin_id_unique, return_spin, spin_loop +from pipe_control.mol_res_spin import check_mol_res_spin_data, exists_mol_res_spin_data, generate_spin_id_unique, generate_spin_string, return_spin, spin_loop from pipe_control.result_files import add_result_file from pipe_control.selection import desel_spin from pipe_control.sequence import return_attached_protons @@ -1913,7 +1913,8 @@ data[i][j][k][l] = 0.0 # Write the header. - title = "Relaxation dispersion plot for: %s %s"%(res_name, spin_id) + spin_string = generate_spin_string(spin=spin, mol_name=mol_name, res_num=res_num, res_name=res_name) + title = "Relaxation dispersion plot for: %s"%(spin_string) graph_num = len(data) sets = [] legend = [] @@ -2048,7 +2049,8 @@ data[i][j][k][l] = 0.0 # Write the header. - title = "Relaxation dispersion plot for: %s %s"%(res_name, spin_id) + spin_string = generate_spin_string(spin=spin, mol_name=mol_name, res_num=res_num, res_name=res_name) + title = "Relaxation dispersion plot for: %s"%(spin_string) if interpolate == "disp": subtitle = "Interpolated through Spin-lock field strength \\xw\\B\\s1\\N" elif interpolate == "offset":