dran.gui.ui package

Submodules

dran.gui.ui.canvas_manager module

class dran.gui.ui.canvas_manager.CanvasManager(parent=None, wid=8, hgt=8, dpi=100, plotName='', log='', cursorState='off')[source]

Bases: FigureCanvasQTAgg

Manages the plot canvas for the GUI.

reset_lists()[source]

Setup/reset lists to store data for the click_index and fit_points.

Parameters:
  • click_index – the indeces of the points clicked on the figure.

  • fit_points – the values of the click_index

init_fig_canvas()[source]

Initiate layout for the canvases.

label_res()[source]

Add labels to the residuals

label_dual_res()[source]

Add labels to the residuals

init_dual_fig_canvas()[source]

Initiate layout for the canvases.

delete_canvas()[source]
clear_canvas()[source]

Clear the figure on the Canvas.

clear_dual_canvas()[source]

Clear the figure on the Canvas.

clear_figure(ax)[source]

Clear the current figure of the given axis.

onmove(event)[source]

Track the cursor movement within the figure canvas

onpick(event)[source]

Pick points on the x-axis where you want to fit your data.

plot_figure(x=[], y=[], title='Main plot window', label='')[source]

Create a figure.

set_labels(ax, title='My title', xlabel='Dist [Deg]', ylabel='Ta [K]')[source]

Set labels for basic plot.

plot_residual(x=[], title='Residuals', label='')[source]

Plot the residuals

plot_dual_residuals(x1, x2, title='Residuals', label='')[source]

Plot the residuals

plot_dual_peaks(xpA, ypA, peakA, rmsA, xpB, ypB, peakB, rmsB, x=[], y=[], title='Peak fitted data')[source]

plot peak fits overlayed on drift scans.

plot_peak(xp, yp, peak, rms, x=[], y=[], title='Peak fitted data')[source]

Pleat peak fit overlayed on drift scan.

dran.gui.ui.edit_driftscan_window module

class dran.gui.ui.edit_driftscan_window.Ui_DriftscanWindow[source]

Bases: object

setupUi(DriftscanWindow)[source]
retranslateUi(DriftscanWindow)[source]

dran.gui.ui.main_window module

class dran.gui.ui.main_window.Ui_MainWindow[source]

Bases: object

setupUi(MainWindow)[source]
retranslateUi(MainWindow)[source]

dran.gui.ui.secondary_canvas_manager module

dran.gui.ui.secondary_canvas_manager.fxn()[source]
class dran.gui.ui.secondary_canvas_manager.SecondaryCanvasManager(parent=None, wid=5, hgt=6, dpi=100, plotName='', log='')[source]

Bases: FigureCanvasQTAgg

Manages the plot canvas for the GUI.

reset_lists()[source]

Setup/reset lists to store data for the click_index and fit_points.

Parameters:
  • click_index – the indeces of the points clicked on the figure.

  • fit_points – the values of the click_index

init_canvas()[source]

Initiate layout for the canvases.

clear_canvas()[source]

Clear the figure on the Canvas.

clear_figure()[source]

Clear the current figure of the given axis.

plot_figure(x=[], y=[], y1=[], label1='', label2='')[source]

Create a figure.

delete_canvas()[source]
set_labels()[source]

Set labels for basic plot.

Module contents