mailr10774 - /1.3/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 February 19, 2010 - 14:54:
Author: bugman
Date: Fri Feb 19 14:54:39 2010
New Revision: 10774

URL: http://svn.gna.org/viewcvs/relax?rev=10774&view=rev
Log:
Added the axis_min and axis_max args to write_xy_header() for specifying the 
graph ranges.


Modified:
    1.3/generic_fns/grace.py

Modified: 1.3/generic_fns/grace.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/grace.py?rev=10774&r1=10773&r2=10774&view=diff
==============================================================================
--- 1.3/generic_fns/grace.py (original)
+++ 1.3/generic_fns/grace.py Fri Feb 19 14:54:39 2010
@@ -443,10 +443,10 @@
         file.write("&\n")
 
 
-def write_xy_header(file=None, sets=1, data_type=[None, None], 
axis_labels=[None, None], spin_ids=None, norm=False):
+def write_xy_header(file=None, sets=1, data_type=[None, None], 
axis_labels=[None, None], axis_min=[None, None], axis_max=[None, None], 
spin_ids=None, norm=False):
     """Write the grace header for xy-scatter plots.
 
-    Many of these keyword arguments should be supplied in a [X, Y] list 
format, where the first element corresponds to the X data, and the second the 
Y data.
+    Many of these keyword arguments should be supplied in a [X, Y] list 
format, where the first element corresponds to the X data, and the second the 
Y data.  Defaults will be used for any non-supplied args (or lists with 
elements set to None).
 
 
     @keyword file:                  The file object to write the data to.
@@ -457,6 +457,10 @@
     @type data_type:                list of str
     @keyword axis_labels:           The labels for the axes (in the [X, Y] 
list format).
     @type axis_labels:              list of str
+    @keyword axis_min:              The minimum values for specifying the 
graph ranges (in the [X, Y] list format).
+    @type axis_min:                 list of str
+    @keyword axis_max:              The maximum values for specifying the 
graph ranges (in the [X, Y] list format).
+    @type axis_max:                 list of str
     @keyword spin_ids:              A list of spin identification strings.
     @type spin_ids:                 list of str
     @keyword norm:                  The normalisation flag which if set to 
True will cause all graphs to be normalised to 1.




Related Messages


Powered by MHonArc, Updated Fri Feb 19 15:00:02 2010