Author: bugman Date: Mon Dec 1 19:12:52 2008 New Revision: 8089 URL: http://svn.gna.org/viewcvs/relax?rev=8089&view=rev Log: Temporarily switched back to residue numbers for the X-axis in the Grace plots. How the spin_id string can be handled in xmgrace needs to be investigated! Modified: branches/spectral_errors/generic_fns/grace.py Modified: branches/spectral_errors/generic_fns/grace.py URL: http://svn.gna.org/viewcvs/relax/branches/spectral_errors/generic_fns/grace.py?rev=8089&r1=8088&r2=8089&view=diff ============================================================================== --- branches/spectral_errors/generic_fns/grace.py (original) +++ branches/spectral_errors/generic_fns/grace.py Mon Dec 1 19:12:52 2008 @@ -189,9 +189,13 @@ # Initialise an empty array for the individual spin data. spin_data = [mol_name, res_num, res_name, spin.num, spin.name, None, None, None, None] + # FIXME: Need to work out how the spin_id string can be handled in Grace. # Spin ID string on the x-axis. + #if x_data_type == 'spin': + # spin_data[-4] = spin_id + # Residue number. if x_data_type == 'spin': - spin_data[-4] = spin_id + spin_data[-4] = res_num # Parameter value for the x-axis. else: @@ -448,12 +452,16 @@ file.write("@ world xmax " + `cdp.mol[0].res[0].spin[-1].num + 1` + "\n") # X-axis label. - file.write("@ xaxis label \"Spin number\"\n") + # FIXME. + #file.write("@ xaxis label \"Spin number\"\n") + file.write("@ xaxis label \"Residue number\"\n") # Mixed data. if seq_type == 'mixed': # X-axis label. - file.write("@ xaxis label \"Spin identification string\"\n") + # FIXME. + #file.write("@ xaxis label \"Spin identification string\"\n") + file.write("@ xaxis label \"Residue number\"\n") else: # Get the units.