def plot_xy_fast(self, beam_out, progressBarValue, var_x, var_y, plot_canvas_index, title, xtitle, ytitle, is_footprint=False): if self.plot_canvas[plot_canvas_index] is None: self.plot_canvas[plot_canvas_index] = oasysgui.plotWindow( roi=False, control=False, position=True) self.plot_canvas[plot_canvas_index].setDefaultPlotLines(False) self.plot_canvas[plot_canvas_index].setActiveCurveColor( color='blue') self.tab[plot_canvas_index].layout().addWidget( self.plot_canvas[plot_canvas_index]) ShadowPlot.plotxy_preview(self.plot_canvas[plot_canvas_index], beam_out._beam, var_x, var_y, nolost=1, title=title, xtitle=xtitle, ytitle=ytitle, conv=self.workspace_units_to_cm, is_footprint=is_footprint) self.progressBarSet(progressBarValue)
def plot_xy_fast(self, beam_out, progressBarValue, var_x, var_y, plot_canvas_index, title, xtitle, ytitle): if self.plot_canvas[plot_canvas_index] is None: self.plot_canvas[plot_canvas_index] = PlotWindow(roi=False, control=False, position=False, plugins=False) self.plot_canvas[plot_canvas_index].setDefaultPlotLines(False) self.plot_canvas[plot_canvas_index].setActiveCurveColor(color='darkblue') self.tab[plot_canvas_index].layout().addWidget(self.plot_canvas[plot_canvas_index]) ShadowPlot.plotxy_preview(self.plot_canvas[plot_canvas_index], beam_out.beam, var_x, var_y, nolost=1, title=title, xtitle=xtitle, ytitle=ytitle) self.progressBarSet(progressBarValue)