diff --git a/src/uim/pumpcalibuim.py b/src/uim/pumpcalibuim.py index 25275bc3a0d0d20f58747e26f7430f43946310e8..c0be36a7315eaf4217d603cbd3cf97a55720040d 100644 --- a/src/uim/pumpcalibuim.py +++ b/src/uim/pumpcalibuim.py @@ -28,6 +28,7 @@ class PumpCalibUim: self.pump_prvd = self.set_current_pump_prvd() self.main_ui.pump_combobox_pump.currentTextChanged.connect(self.change_pump) + self.change_pump(self.main_ui.pump_combobox_pump.currentText()) self.runs_df = pd.DataFrame() self.coef_df = pd.DataFrame() @@ -58,11 +59,11 @@ class PumpCalibUim: def __update_runs_plot__(self, runs_df: pd.DataFrame, coef_df: pd.DataFrame) -> None: # Create plot item - plot_item = pg.PlotItem() + plot_item = pg.PlotItem(labels={"left": "ml/min", "bottom": "RPM"}) self.main_ui.pump_graphicsview_runs.setCentralItem(plot_item) # Create legend - legend = pg.LegendItem(offset=(40, 10)) + legend = pg.LegendItem(offset=(57, 5)) legend.setParentItem(plot_item.graphicsItem()) # Create the color scale