Skip to content

Commit c6ab01d

Browse files
update
1 parent 84cc55b commit c6ab01d

3 files changed

Lines changed: 886 additions & 960 deletions

File tree

Keithley_2400/Backends/IV_K2400_Loop_Backend_v10.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import numpy as np
2323
import matplotlib.pyplot as plt
2424
from time import sleep
25-
# import pyvisa
25+
import pyvisa
2626
from pymeasure.instruments.keithley import Keithley2400
2727
import pandas as pd
2828

Utilities/PlotterUtil_GUI_v3.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class PlotterApp:
8585
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
8686
LOGO_FILE_PATH = os.path.join(
8787
SCRIPT_DIR,
88-
"..", # type: ignore
88+
"..", # type: ignore
8989
"assets",
9090
"LOGO",
9191
"UGC_DAE_CSR_NBG.jpeg")
@@ -958,15 +958,22 @@ def _finalize_plot(self, x_col, y_col, selected_filepaths):
958958
if leg:
959959
leg.get_title().set_color(self.CLR_CONSOLE_BG)
960960

961-
self.ax_main.set_xscale('log' if self.x_log_var.get() else 'linear') # type: ignore
962-
self.ax_main.set_yscale('log' if self.y_log_var.get() else 'linear')
961+
self.ax_main.set_xscale(
962+
'log' if self.x_log_var.get() else 'linear') # type: ignore
963+
self.ax_main.set_yscale(
964+
'log' if self.y_log_var.get() else 'linear')
963965
self.ax_main.set_xlabel(x_col)
964966
self.ax_main.set_ylabel(y_col)
965967

966968
if len(selected_filepaths) == 1:
967-
self.ax_main.set_title(os.path.basename(selected_filepaths[0]), fontweight='bold')
969+
self.ax_main.set_title(
970+
os.path.basename(
971+
selected_filepaths[0]),
972+
fontweight='bold')
968973
else:
969-
self.ax_main.set_title(f"{y_col} vs. {x_col}", fontweight='bold')
974+
self.ax_main.set_title(
975+
f"{y_col} vs. {x_col}",
976+
fontweight='bold')
970977
self.figure.tight_layout()
971978

972979
def _handle_load_error(self, filepath, e):

0 commit comments

Comments
 (0)