adjust rolling history

adjust graph padding
This commit is contained in:
Jonathan Roth 2025-04-27 12:20:49 +02:00
parent 226f4469f8
commit 64065348ad
2 changed files with 5 additions and 5 deletions

View File

@ -269,10 +269,10 @@ class BlockStackApp(QWidget):
# Keep only the last 100 values # Keep only the last 100 values
if not worker.is_running: if not worker.is_running:
# Keep only the last 100 values # Keep only the last 100 values
if len(y_data1) > 100: if len(y_data1) > 200:
y_data1 = y_data1[-100:] y_data1 = y_data1[-200:]
y_data2 = y_data2[-100:] y_data2 = y_data2[-200:]
y_data3 = y_data3[-100:] y_data3 = y_data3[-200:]
# Update x-axis values to reflect the rolling window # Update x-axis values to reflect the rolling window
x_data1 = list(range(len(y_data1))) x_data1 = list(range(len(y_data1)))

View File

@ -514,7 +514,7 @@ class UpdateWorker(QThread):
plt.style.use('dark_background') plt.style.use('dark_background')
fig, ax = plt.subplots() fig, ax = plt.subplots()
plt.subplots_adjust(left=-0.01, right=1, top=1.01, bottom=0) plt.subplots_adjust(left=-0.04, right=1.04, top=1.01, bottom=0)
ax.set_facecolor('#3a3a3a') ax.set_facecolor('#3a3a3a')
ax.set_xticks([]) # Hide x-axis values ax.set_xticks([]) # Hide x-axis values
ax.set_frame_on(True) ax.set_frame_on(True)