1 #!/usr/bin/env python
\r
6 Global settings for plots
\r
8 Copyright 2010 by Dr. Rolf Schmidt (Concordia University, Canada)
\r
10 This program is released under the GNU General Public License version 2.
\r
15 def do_preferences(self):
\r
16 active_file = self.GetActiveFile()
\r
17 for curve in active_file.plot.curves:
\r
18 curve.decimals.x = self.GetIntFromConfig('plot', 'preferences', 'x_decimals')
\r
19 curve.decimals.y = self.GetIntFromConfig('plot', 'preferences', 'y_decimals')
\r
20 curve.legend = self.GetBoolFromConfig('plot', 'preferences', 'legend')
\r
21 curve.prefix.x = self.GetStringFromConfig('plot', 'preferences', 'x_prefix')
\r
22 curve.prefix.y = self.GetStringFromConfig('plot', 'preferences', 'y_prefix')
\r