Plot : wxPython pour Windows et Qt6 pour GNU/Linux

This commit is contained in:
Philippe Roy 2023-01-30 09:57:07 +01:00
parent 96c8c1f179
commit 1b742a4aeb
2 changed files with 0 additions and 7 deletions

View File

@ -1,5 +1,4 @@
import sys
import random
import importlib
import csv
import xml.etree.ElementTree as ET # Creating/parsing XML file
@ -97,9 +96,6 @@ class DynamicPlot(QtWidgets.QMainWindow):
super(MainWindow, self).__init__(*args, **kwargs)
self.canvas = MplCanvas(self, width=5, height=4, dpi=100)
self.setCentralWidget(self.canvas)
n_data = 50
# self.xdata = list(range(n_data))
# self.ydata = [random.randint(0, 10) for i in range(n_data)]
self.xdata = [0]
self.ydata = [0]
self.update_plot()

View File

@ -1,5 +1,4 @@
import sys
import random
import importlib
import csv
import xml.etree.ElementTree as ET # Creating/parsing XML file
@ -9,8 +8,6 @@ import matplotlib
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import (FigureCanvasWxAgg as FigureCanvas, NavigationToolbar2WxAgg as NavigationToolbar)
import numpy as np
###############################################################################
# twin_plot_wx.py
# @title: Visualisation des données (wxPython + Matplotlib)