More cleanups to Setting/Argument type handling, mostly for count != 1.
[hooke.git] / hooke / ui / gui / panel / plot.py
index 7f024937130c20285e0345a2d0d88cf76f67e4a5..2eb9eab407b58102b1acbfe5e7c80c002bee578a 100644 (file)
@@ -259,8 +259,8 @@ class PlotPanel (Panel, wx.Panel):
             fontsize=12)
         axes = self._c['figure'].add_subplot(1, 1, 1)
 
-        if config['plot SI format'] == 'True':  # TODO: config should convert
-            d = int(config['plot decimals'])  # TODO: config should convert
+        if config['plot SI format'] == True:
+            d = config['plot decimals']
             x_n, x_unit = split_data_label(self._x_column)
             y_n, y_unit = split_data_label(self._y_column)
             fx = HookeFormatter(decimals=d, unit=x_unit)