Creating Free Energy DiagramsΒΆ
Free energy diagrams can be created via the FancyPlots GUI or by the subpackage
ccu.fancyplots.
To launch the GUI, run:
ccu fed
To use the ccu.fancyplots subpackage, one can also launch the GUI with
import tkinter as tk
from ccu.fancyplots.gui.main import run
root = tk.Tk()
app = FancyPlotsGUI(master=root)
app.master.mainloop()
FancyPlots produces a cache file (extension .fancy) that can be used to
initialize FancyPlots with the values from a previous session. To seed FancyPlots
with data from a previous session run:
ccu fed --cache=CACHE_FILE
from the command line or
import tkinter as tk
from ccu.fancyplots.gui.main import run
root = tk.Tk()
app = FancyPlotsGUI(cache_file=Path("CACHE_FILE"), master=root)
app.master.mainloop()
within Python.