def initUI(self): self.setWindowTitle( f"Fourier Spectrum Estimate - {self.parentWA.signal_id}") self.setGeometry(510, 80, 550, 400) main_frame = QWidget() pCanvas = mkGenericCanvas() pCanvas.setParent(main_frame) ntb = NavigationToolbar(pCanvas, main_frame) # plot it pCanvas.fig.clf() pl.averaged_Wspec(self.avWspec, self.parentWA.periods, time_unit=self.parentWA.time_unit, fig=pCanvas.fig) pCanvas.fig.subplots_adjust(left=0.15, bottom=0.17) main_layout = QGridLayout() main_layout.addWidget(pCanvas, 0, 0, 9, 1) main_layout.addWidget(ntb, 10, 0, 1, 1) self.setLayout(main_layout) self.show()
def initUI(self, dataset_name): self.setWindowTitle(f'Ensemble Dynamics - {dataset_name}') self.setGeometry(210, 80, 700, 480) main_frame = QWidget() Canvas = mkGenericCanvas() Canvas.setParent(main_frame) ntb = NavigationToolbar(Canvas, main_frame) Canvas.fig.clf() pl.ensemble_dynamics(*self.results, dt=self.dt, time_unit=self.time_unit, fig=Canvas.fig) Canvas.fig.subplots_adjust(wspace=0.3, left=0.1, top=0.98, right=0.95, bottom=0.15) main_layout = QGridLayout() main_layout.addWidget(Canvas, 0, 0, 9, 1) main_layout.addWidget(ntb, 10, 0, 1, 1) self.setLayout(main_layout) self.show()
def initUI(self, dataset_name): self.setWindowTitle(f'Fourier Power Distribution - {dataset_name}') self.setGeometry(510, 330, 550, 400) main_frame = QWidget() Canvas = mkGenericCanvas() Canvas.setParent(main_frame) ntb = NavigationToolbar(Canvas, main_frame) Canvas.fig.clf() pl.Fourier_distribution(self.df_fouriers, time_unit=self.time_unit, fig=Canvas.fig) Canvas.fig.subplots_adjust(wspace=0.3, left=0.15, top=0.98, right=0.95, bottom=0.15) main_layout = QGridLayout() main_layout.addWidget(Canvas, 0, 0, 9, 1) main_layout.addWidget(ntb, 10, 0, 1, 1) self.setLayout(main_layout) self.show()
def initUI(self, dataset_name): self.setWindowTitle(f'Ridge Power Distribution - {dataset_name}') self.setGeometry(410, 220, 550, 400) main_frame = QWidget() pCanvas = mkGenericCanvas() pCanvas.setParent(main_frame) ntb = NavigationToolbar(pCanvas, main_frame) # plot it pCanvas.fig.clf() pl.power_distribution(self.powers, fig=pCanvas.fig) pCanvas.fig.subplots_adjust(left=0.15, bottom=0.17) main_layout = QGridLayout() main_layout.addWidget(pCanvas, 0, 0, 9, 1) main_layout.addWidget(ntb, 10, 0, 1, 1) self.setLayout(main_layout) self.show()