-#!/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();