Merged Rolf Schmidt's illysam branch
[hooke.git] / hooke / plugin / plot.py
similarity index 97%
rename from plugins/plot.py
rename to hooke/plugin/plot.py
index 0e8c4600ea5f7128c669ac6956647425e82a0e3d..26cd8a26e09daa5bdaa78801a4e1126cc09f0aca 100644 (file)
@@ -1,24 +1,24 @@
-#!/usr/bin/env python\r
-\r
-'''\r
-plot.py\r
-\r
-Global settings for plots\r
-\r
-Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)\r
-\r
-This program is released under the GNU General Public License version 2.\r
-'''\r
-\r
-class plotCommands:\r
-\r
-    def do_preferences(self):\r
-        active_file = self.GetActiveFile()\r
-        for curve in active_file.plot.curves:\r
-            curve.decimals.x = self.GetIntFromConfig('plot', 'preferences', 'x_decimals')\r
-            curve.decimals.y = self.GetIntFromConfig('plot', 'preferences', 'y_decimals')\r
-            curve.legend = self.GetBoolFromConfig('plot', 'preferences', 'legend')\r
-            curve.prefix.x = self.GetStringFromConfig('plot', 'preferences', 'x_prefix')\r
-            curve.prefix.y = self.GetStringFromConfig('plot', 'preferences', 'y_prefix')\r
-\r
-        self.UpdatePlot();\r
+#!/usr/bin/env python
+
+'''
+plot.py
+
+Global settings for plots
+
+Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)
+
+This program is released under the GNU General Public License version 2.
+'''
+
+class plotCommands:
+
+    def do_preferences(self):
+        active_file = self.GetActiveFile()
+        for curve in active_file.plot.curves:
+            curve.decimals.x = self.GetIntFromConfig('plot', 'preferences', 'x_decimals')
+            curve.decimals.y = self.GetIntFromConfig('plot', 'preferences', 'y_decimals')
+            curve.legend = self.GetBoolFromConfig('plot', 'preferences', 'legend')
+            curve.prefix.x = self.GetStringFromConfig('plot', 'preferences', 'x_prefix')
+            curve.prefix.y = self.GetStringFromConfig('plot', 'preferences', 'y_prefix')
+
+        self.UpdatePlot();