From 64065348ad637e52d988167cec3c16e15204921c Mon Sep 17 00:00:00 2001 From: Jonathan Roth Date: Sun, 27 Apr 2025 12:20:49 +0200 Subject: [PATCH] adjust rolling history adjust graph padding --- BlockStackApp.py | 8 ++++---- UpdateWorker.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BlockStackApp.py b/BlockStackApp.py index 207c4d8..2c7abe5 100644 --- a/BlockStackApp.py +++ b/BlockStackApp.py @@ -269,10 +269,10 @@ class BlockStackApp(QWidget): # Keep only the last 100 values if not worker.is_running: # Keep only the last 100 values - if len(y_data1) > 100: - y_data1 = y_data1[-100:] - y_data2 = y_data2[-100:] - y_data3 = y_data3[-100:] + if len(y_data1) > 200: + y_data1 = y_data1[-200:] + y_data2 = y_data2[-200:] + y_data3 = y_data3[-200:] # Update x-axis values to reflect the rolling window x_data1 = list(range(len(y_data1))) diff --git a/UpdateWorker.py b/UpdateWorker.py index 76e4f18..7b2ae51 100644 --- a/UpdateWorker.py +++ b/UpdateWorker.py @@ -514,7 +514,7 @@ class UpdateWorker(QThread): plt.style.use('dark_background') 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_xticks([]) # Hide x-axis values ax.set_frame_on(True)