ccu.fancyplots._gui.annotation

GUI elements for defining free energy diagram annotations.

This module defines the AnnotationSection class.

class ccu.fancyplots._gui.annotation.AnnotationSection(parent: FancyPlotsGUI, *args, **kwargs)[source]

Bases: Labelframe, UpdatableFrame

GUI component for adding annotations to the free energy diagram.

Variables:

annotations – A list of ccu.fancyplots.data.Annotation

Create section for adding annotations to the free energy diagram.

_abc_impl = <_abc._abc_data object>
_create_spinbox_frame() tuple[Labelframe, IntVar][source]
_is_protocol = False
_organize() None[source]

Organize widgets into 1x7 grid.

auto_annotate() None[source]

Automatically annotate FED with mechanism step names.

create_auto_annotate_button() Button[source]

Create a auto annotate button.

create_save_button() Button[source]

Create a save button.

save_annotation() None[source]

Save the created annotation data.

update_frames() None[source]

Update the values in the subframes with the annotation.

ccu.fancyplots._gui.annotation.auto_annotate(data: FEDData) list[Annotation][source]

Automatically generate annotations from free energy data.

Note

Duplicate annotations are not added.