mailr27136 - /trunk/test_suite/system_tests/structure.py


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

Header


Content

Posted by edward on December 18, 2014 - 16:45:
Author: bugman
Date: Thu Dec 18 16:45:24 2014
New Revision: 27136

URL: http://svn.gna.org/viewcvs/relax?rev=27136&view=rev
Log:
Updated the Structure.test_atomic_fluctuations_gnuplot system test.

This is for the gnuplot correlation_matrix() plotting API changes which 
affect the
structure.atomic_fluctuations user function.


Modified:
    trunk/test_suite/system_tests/structure.py

Modified: trunk/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/structure.py?rev=27136&r1=27135&r2=27136&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Thu Dec 18 16:45:24 2014
@@ -368,11 +368,33 @@
 
         # Check the gnuplot file.
         script = [
+            "\n",
+            "# Set the plot type.\n",
             "set pm3d map\n",
+            "\n",
+            "# Set up the terminal type and make the plot square.\n",
+            "set terminal postscript eps size 10,10 enhanced color font 
'Helvetica,20' linewidth 0.1\n",
+            "\n",
+            "# Blue-red colour map.\n",
+            "set palette defined (0 \"#000090\", 1 \"#000fff\", 2 
\"#0090ff\", 3 \"#0fffee\", 4 \"#90ff70\", 5 \"#ffee00\", 6 \"#ff7000\", 7 
\"#ee0000\", 8 \"#7f0000\")\n",
+            "\n",
+            "# Labels.\n",
+            "set xtics out rotate font \",8\" (\":4\\\\@N\" 0, \":4\\\\@CA\" 
1)\n",
+            "set ytics out font \",8\" (\":4\\\\@N\" 0, \":4\\\\@CA\" 1)\n",
+            "\n",
+            "# Output to EPS.\n",
+            "set output \"matrix.eps\"\n",
+            "\n",
+            "# Load and show the text data\n",
             "splot \"matrix\" matrix\n"
         ]
         file = open("%s%s%s" % (ds.tmpdir, sep, 'matrix.gnu'))
         lines = file.readlines()
+        print("Script:")
+        print("\"\"\"")
+        for line in lines:
+            print(line[:-1])
+        print("\"\"\"")
         self.assertEqual(len(script), len(lines))
         for i in range(len(lines)):
             self.assertEqual(script[i], lines[i])




Related Messages


Powered by MHonArc, Updated Thu Dec 18 17:00:03 2014