fixed the fixed multi-tabbed plots

This commit is contained in:
davidpagnon 2024-09-18 00:36:46 +02:00
parent 3d3203fa8d
commit 7af1584e01
2 changed files with 4 additions and 4 deletions

View File

@ -22,9 +22,9 @@ import sys
import matplotlib as mpl
mpl.use('qt5agg')
mpl.rc('figure', max_open_warning=0)
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QTabWidget, QVBoxLayout
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QTabWidget, QVBoxLayout
import warnings
warnings.filterwarnings("ignore", category=UserWarning, module="c3d")
@ -481,10 +481,10 @@ class plotWindow():
'''
def __init__(self, parent=None):
self.app = QApplication(sys.argv)
self.app = QApplication.instance()
if not self.app:
self.app = QApplication(sys.argv)
self.MainWindow.__init__()
self.MainWindow = QMainWindow()
self.MainWindow.setWindowTitle("Multitabs figure")
self.canvases = []
self.figure_handles = []

View File

@ -1,6 +1,6 @@
[metadata]
name = pose2sim
version = 0.9.11
version = 0.9.12
author = David Pagnon
author_email = contact@david-pagnon.com
description = Perform a markerless kinematic analysis from multiple calibrated views as a unified workflow from an OpenPose input to an OpenSim result.