X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fplugin%2Fplot.py;fp=plugins%2Fplot.py;h=26cd8a26e09daa5bdaa78801a4e1126cc09f0aca;hp=0e8c4600ea5f7128c669ac6956647425e82a0e3d;hb=c46aaa51003a6722a28eea0e49f63ef1bb0e882d;hpb=fcd8ce88e3e15e25d42012b511fd89002b6474a7 diff --git a/plugins/plot.py b/hooke/plugin/plot.py similarity index 97% rename from plugins/plot.py rename to hooke/plugin/plot.py index 0e8c460..26cd8a2 100644 --- a/plugins/plot.py +++ b/hooke/plugin/plot.py @@ -1,24 +1,24 @@ -#!/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(); +#!/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();