profilewindow

Module that contains the ProfileDockWidget

class tuiview.profilewindow.ProfileDockWidget(*args: Any, **kwargs: Any)[source]

Dockable window that is a combined profile and ruler

closeEvent(event)[source]

Window is being closed - inform parent window

layersChanged()[source]

Layers have changed - if polyLine.layer no longer in our list of layers then close this window.

newLine(polyLine)[source]

Widget has collected a new line

onPlotScaling()[source]

Allows the user to change the Y axis scaling of the plot

plotProfile(xdata, ydata, mask, pen)[source]

Plot the xdata vs ydata. Use the mask to split the plot up so values only plotted where mask = True

savePlot()[source]

Save the plot as a file. Either .pdf or .ps QPrinter chooses format based on extension.

setupActions()[source]

Create the actions to be shown on the toolbar

setupToolbar()[source]

Add the actions to the toolbar

profileClosed

emitted when Window closed