20 lines
537 B
Python
20 lines
537 B
Python
from src.logic import userInterface
|
|
from src.ui.widgets.graph import GraphWidget
|
|
|
|
|
|
def display_graph():
|
|
import sys
|
|
from PyQt6 import QtWidgets
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
data = {
|
|
"x": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
"y": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
"y2": [10, 9, 8, 7, 6, 5, 4, 3, 2, 1],
|
|
}
|
|
widget = GraphWidget(data=data, legend_labels=["+", "-"])
|
|
widget.show()
|
|
sys.exit(app.exec())
|
|
|
|
if __name__ == '__main__':
|
|
userInterface.launch_gui()
|
|
# display_graph() |