From 1b742a4aeb61c5342102722ad4bf7dd527f17d2e Mon Sep 17 00:00:00 2001 From: Philippe Roy Date: Mon, 30 Jan 2023 09:57:07 +0100 Subject: [PATCH] Plot : wxPython pour Windows et Qt6 pour GNU/Linux --- twin_plot_qt.py | 4 ---- twin_plot_wx.py | 3 --- 2 files changed, 7 deletions(-) diff --git a/twin_plot_qt.py b/twin_plot_qt.py index 6e7dc51..b23335d 100644 --- a/twin_plot_qt.py +++ b/twin_plot_qt.py @@ -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() diff --git a/twin_plot_wx.py b/twin_plot_wx.py index b3e9956..e5fd932 100644 --- a/twin_plot_wx.py +++ b/twin_plot_wx.py @@ -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)