adjust rolling history
adjust graph padding
This commit is contained in:
parent
226f4469f8
commit
64065348ad
@ -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)))
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user