renamed graphs

This commit is contained in:
Djalim Simaila 2023-04-27 15:22:32 +02:00
parent 31c8820581
commit 39e6f494bd

View File

@ -31,9 +31,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.graphType = [
"Aucun",
"Mesh3D",
"CoupeXZ",
"CoupeYZ",
"EvolutionRayon",
"Coupe XZ",
"Coupe YZ",
"Evolution du rayon moyen",
]
self.obj = None
@ -248,11 +248,11 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
graph_type = slot[1]
if graph_type == "Mesh3D":
current_slot.addWidget(render3D(obj,False).native)
if graph_type == "CoupeXZ":
if graph_type == "Coupe XZ":
current_slot.addWidget(cross_section(obj.get_x(),obj.get_z(),"Coupe XZ",False).native)
if graph_type == "CoupeYZ":
if graph_type == "Coupe YZ":
current_slot.addWidget(cross_section(obj.get_y(),obj.get_z(),"Coupe YZ",False).native)
if graph_type == "EvolutionRayon":
if graph_type == "Evolution du rayon moyen":
current_slot.addWidget(render2D(list(zip(discrete_data['Z moy (en mm)'],discrete_data['Rayon moyen (en mm)'])),"Evolution du rayon moyen",False).native)
def clear_graphs(self):