diff --git a/statapp/main_window.py b/statapp/main_window.py index 3fadbdc..9973cb7 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -74,7 +74,7 @@ class MainWindow(QMainWindow): gw = GenerateWindow() if gw.exec(): y = np.random.normal(gw.mat, gw.deviation, size=(gw.count, 1)) - self.model.updateAllData(y) + self.model.updateAllData(y.round(2)) self.isDataChanged = True @Slot() @@ -107,7 +107,7 @@ class MainWindow(QMainWindow): data = self.model.getData() - x_arr = x_arr.reshape(len(x_arr), 1) + x_arr = x_arr.reshape(len(x_arr), 1).round(2) # dd = dd.reshape(len(dd), 1) data = np.concatenate((data, x_arr), axis=1) # data = np.concatenate((data, dd), axis=1)