mirror of
https://forge.apps.education.fr/blender-edutech/jumeaux-numeriques.git
synced 2024-01-27 06:56:18 +01:00
Plot : wxPython pour Windows et Qt6 pour GNU/Linux
This commit is contained in:
parent
96c8c1f179
commit
1b742a4aeb
@ -1,5 +1,4 @@
|
|||||||
import sys
|
import sys
|
||||||
import random
|
|
||||||
import importlib
|
import importlib
|
||||||
import csv
|
import csv
|
||||||
import xml.etree.ElementTree as ET # Creating/parsing XML file
|
import xml.etree.ElementTree as ET # Creating/parsing XML file
|
||||||
@ -97,9 +96,6 @@ class DynamicPlot(QtWidgets.QMainWindow):
|
|||||||
super(MainWindow, self).__init__(*args, **kwargs)
|
super(MainWindow, self).__init__(*args, **kwargs)
|
||||||
self.canvas = MplCanvas(self, width=5, height=4, dpi=100)
|
self.canvas = MplCanvas(self, width=5, height=4, dpi=100)
|
||||||
self.setCentralWidget(self.canvas)
|
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.xdata = [0]
|
||||||
self.ydata = [0]
|
self.ydata = [0]
|
||||||
self.update_plot()
|
self.update_plot()
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import sys
|
import sys
|
||||||
import random
|
|
||||||
import importlib
|
import importlib
|
||||||
import csv
|
import csv
|
||||||
import xml.etree.ElementTree as ET # Creating/parsing XML file
|
import xml.etree.ElementTree as ET # Creating/parsing XML file
|
||||||
@ -9,8 +8,6 @@ import matplotlib
|
|||||||
from matplotlib.figure import Figure
|
from matplotlib.figure import Figure
|
||||||
from matplotlib.backends.backend_wxagg import (FigureCanvasWxAgg as FigureCanvas, NavigationToolbar2WxAgg as NavigationToolbar)
|
from matplotlib.backends.backend_wxagg import (FigureCanvasWxAgg as FigureCanvas, NavigationToolbar2WxAgg as NavigationToolbar)
|
||||||
|
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# twin_plot_wx.py
|
# twin_plot_wx.py
|
||||||
# @title: Visualisation des données (wxPython + Matplotlib)
|
# @title: Visualisation des données (wxPython + Matplotlib)
|
||||||
|
Loading…
Reference in New Issue
Block a user