mailr8089 - /branches/spectral_errors/generic_fns/grace.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 01, 2008 - 19:12:
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.




Related Messages


Powered by MHonArc, Updated Mon Dec 01 20:40:04 2008