lyse.analysis_subprocess.Plot

class lyse.analysis_subprocess.Plot(figure, identifier, filepath)[source]

Bases: object

__init__(figure, identifier, filepath)[source]

Methods

__init__(figure, identifier, filepath)

analysis_complete(figure_in_use)

To be overriden by subclasses.

clear()

draw()

get_window_state()

Called when the Plot window is about to be closed due to a change in registered Plot window class

on_close()

Called when the window is closed.

on_copy_to_clipboard_triggered()

on_lock_axes_triggered()

restore_axis_limits()

restore_window_state(state)

Called when the Plot window is recreated due to a change in registered Plot window class.

save_axis_limits()

set_window_title(identifier, filepath)

show()

update_window_size()

Attributes

is_shown

analysis_complete(figure_in_use)[source]

To be overriden by subclasses. Called as part of the post analysis plot actions

clear()[source]
draw()[source]
get_window_state()[source]

Called when the Plot window is about to be closed due to a change in registered Plot window class

Can be overridden by subclasses if custom information should be saved (although bear in mind that you will passing the information from the previous Plot subclass which might not be what you want unless the old and new classes have a common ancestor, or the change in Plot class is triggered by a reload of the module containing your Plot subclass).

Returns a dictionary of information on the window state.

If you have overridden this method, please call the base method first and then update the returned dictionary with your additional information before returning it from your method.

property is_shown
on_close()[source]

Called when the window is closed.

Note that this only happens if the Plot window class has changed. Clicking the “X” button in the window title bar has been overridden to hide the window instead of closing it.

on_copy_to_clipboard_triggered()[source]
on_lock_axes_triggered()[source]
restore_axis_limits()[source]
restore_window_state(state)[source]

Called when the Plot window is recreated due to a change in registered Plot window class.

Can be overridden by subclasses if custom information should be restored (although bear in mind that you will get the information from the previous Plot subclass which might not be what you want unless the old and new classes have a common ancestor, or the change in Plot class is triggered by a reload of the module containing your Plot subclass).

If overriding, please call the parent method in addition to your new code

Parameters:

state – A dictionary of information to restore

save_axis_limits()[source]
set_window_title(identifier, filepath)[source]
show()[source]
update_window_size()[source]