def create_plot(self, options, row=0, column=0, rowspan=1, columnspan=1): ImageDialog.create_plot(self, options, row, column, rowspan, columnspan) ra_panel = ObliqueCrossSection(self) splitter = self.plot_widget.xcsw_splitter splitter.addWidget(ra_panel) splitter.setStretchFactor(splitter.count() - 1, 1) splitter.setSizes(list(splitter.sizes()) + [2]) self.add_panel(ra_panel)
def create_plot(self, options): self.filter_gbox = DataSetEditGroupBox(_("Filter parameters"), FilterParam) self.filter_gbox.setEnabled(False) self.filter_gbox.SIG_APPLY_BUTTON_CLICKED.connect(self.apply_filter) self.plot_layout.addWidget(self.filter_gbox, 0, 0) self.param_gbox = DataSetShowGroupBox(_("Image parameters"), ImageParam) self.plot_layout.addWidget(self.param_gbox, 0, 1) options = dict(title=_("Image title"), zlabel=_("z-axis scale label")) ImageDialog.create_plot(self, options, 1, 0, 1, 0)