Skip to content

Commit

Permalink
🔥 Remove old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed May 31, 2024
1 parent 4597334 commit 2056add
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions scripts/realTimePlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from random import randrange
from PyQt5 import QtWidgets


class RealTimePlot:
def __init__(self, title, num_lines=1):
self.num_lines = num_lines
Expand All @@ -21,7 +22,7 @@ def __init__(self, title, num_lines=1):
self.ax.spines['bottom'].set_color('white')
self.ax.spines['top'].set_color('white')
self.ax.spines['left'].set_color('white')
self.ax.spines['right'].set_color('white')
self.ax.spines['right'].set_color('white')
self.ax.tick_params(axis='x', colors='white')
self.ax.tick_params(axis='y', colors='white')
self.ax.yaxis.label.set_color('white')
Expand Down Expand Up @@ -50,15 +51,4 @@ def add_plot(self, MainWindow, widget_name):
layout = QtWidgets.QVBoxLayout()
layout.addWidget(self.figure.canvas)
widget.setLayout(layout)

# Example usage
# plot1 = RealTimePlot("Plot 1", num_lines=2)
# plot1.start_animation()
# figure = plot1.figure
# listWidget_vacuum = MainWindow.findChild(QtWidgets.QListWidget, "listWidget_vacuum")
# item = QtWidgets.QListWidgetItem()
# item.setSizeHint(QtCore.QSize(0, 500))
# listWidget_vacuum.addItem(item)
# listWidget_vacuum.setItemWidget(item, figure.canvas)
# Developed with ❤️ by : www.noasecond.com.
# Développé avec ❤️ par : www.noasecond.com.

0 comments on commit 2056add

Please sign in to comment.