ccu.fancyplots._gui.fed¶
GUI widgets for displaying free energy diagrams.
Specifically, this module provides the
FreeEnergyDiagram and
TightFreeEnergyDiagram classes.
- class ccu.fancyplots._gui.fed.FreeEnergyDiagram(parent: FancyPlotsGUI, *args, **kwargs)[source]¶
Bases:
ToplevelView the free energy diagram.
- Variables:
canvas – The
FigureCanvasTkAggin which the free energy diagram in plotted.coordinate_label – The
ttk.Labelused to display the mouse coordinates.cleanup_button – The
ttk.Buttonused to preview the diagram with a tight layout.introduction – The
ttk.Labelused to display the cursor coordinate hint.parent – The
FancyPlotsGUI.tooltip – The
Tooltipused to display the tight layout hint.
Create a window for displaying a free energy diagram.
- Parameters:
parent – The running
ccu.fancyplots._gui.root.FancyPlotsGUIinstance.*args – Positional arguments for
tkinter.Toplevel.**kwargs – Keyword arguments fo
tkinter.Toplevel.
- generate_figure() tuple[Axes | None, Axes | None, Figure | None][source]¶
Generate the free energy diagram.
- Returns:
The output of
plotting.generate_figure()if a mechanism is defined. Otherwise, (None, None, None).
- class ccu.fancyplots._gui.fed.TightFreeEnergyDiagram(parent: FancyPlotsGUI, *args, **kwargs)[source]¶
Bases:
ToplevelView the free energy diagram with a tight layout.
Create a window for displaying a tight layout free energy diagram.
- Parameters:
parent – The running
root.FancyPlotsGUIinstance.*args – Positional arguments for
tkinter.Toplevel.**kwargs – Keyword arguments fo
tkinter.Toplevel.