mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-03-09 10:17:50 +01:00
feat: plot flips every second row
This commit is contained in:
@@ -78,12 +78,12 @@ class StreamApp(QWidget):
|
||||
row = msgMCS.content["signals"]["mca1"]
|
||||
metadata = msgMCS.metadata
|
||||
|
||||
# Check if the current number of rows is odd
|
||||
if parent.data is not None and parent.data.shape[0] % 2 == 1:
|
||||
row = np.flip(row) # Flip the row
|
||||
|
||||
if parent.data is None:
|
||||
parent.data = np.array([row])
|
||||
|
||||
# Check if the current number of rows is odd
|
||||
# if parent.data is not None and parent.data.shape[0] % 2 == 0:
|
||||
# row = np.flip(row) # Flip the rowR
|
||||
else:
|
||||
parent.data = np.vstack((parent.data, row))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user