Skip to content

chemdiagrams.templates.base_template

BaseTemplate

Base template class for energy diagrams

This template does not change any default settings and can be used as a starting point for custom templates. It is also the default template if no other template is specified.

Source code in src/chemdiagrams/templates/base_template.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class BaseTemplate:
    """
    Base template class for energy diagrams

    This template does not change any default settings and can be used
    as a starting point for custom templates. It is also the default template
    if no other template is specified.
    """

    def __init__(self):
        self.constants = Constants()

    def startup(self, diagram):
        """Startup function to be called at the beginning of the plotting process"""
        return diagram

startup(diagram)

Startup function to be called at the beginning of the plotting process

Source code in src/chemdiagrams/templates/base_template.py
16
17
18
def startup(self, diagram):
    """Startup function to be called at the beginning of the plotting process"""
    return diagram