Skip to content

Commit 85990c1

Browse files
committed
GUI Colours Change
1 parent f77fe16 commit 85990c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bioamptool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,14 @@ def init_gui():
136136
layout = QtWidgets.QVBoxLayout() # Create a vertical layout for the window
137137
win.setLayout(layout) # Set the layout to the window
138138
win.setWindowTitle("Real-Time Arduino Data") # Set the window title
139+
140+
pg.setConfigOption('background', 'w') #background
141+
pg.setConfigOption('foreground', 'k') # Set the foreground (axes, text) color to black for contrast
139142

140143
# Create plots for each channel (6 in total)
141144
plots = []
142145
curves = []
143-
colors = ['r', 'g', 'b', 'y', 'm', 'c'] # Different colors for each channel
146+
colors = ['#FF3B3B','#00FF66', '#007BFF', '#FFA500', '#FF00FF', '#FF1493'] # Different colors for each channel
144147
for i in range(6):
145148
plot = pg.PlotWidget(title=f"Channel {i + 1}") # Create a plot widget for each channel
146149
layout.addWidget(plot) # Add the plot to the layout

0 commit comments

Comments
 (0)