Skip to content

chemdiagrams.templates.tonner_zech_template

TonnerZechTemplate

Bases: BaseTemplate

Source code in src/chemdiagrams/templates/tonner_zech_template.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class TonnerZechTemplate(BaseTemplate):
    def __init__(self):
        """
        Modyfy constants for Tonner and Zech style diagrams here.
        e.g. self.constants.DISTANCE_TEXT_DIFFBAR = 0.05
        """
        super().__init__()

    def startup(self, diagram):
        """
        Startup function to be called at the beginning of the plotting process
        Here you can modify the diagram object before any plotting is done.
        """
        diagram = super().startup(diagram)
        return diagram

__init__()

Modyfy constants for Tonner and Zech style diagrams here. e.g. self.constants.DISTANCE_TEXT_DIFFBAR = 0.05

Source code in src/chemdiagrams/templates/tonner_zech_template.py
 5
 6
 7
 8
 9
10
def __init__(self):
    """
    Modyfy constants for Tonner and Zech style diagrams here.
    e.g. self.constants.DISTANCE_TEXT_DIFFBAR = 0.05
    """
    super().__init__()

startup(diagram)

Startup function to be called at the beginning of the plotting process Here you can modify the diagram object before any plotting is done.

Source code in src/chemdiagrams/templates/tonner_zech_template.py
12
13
14
15
16
17
18
def startup(self, diagram):
    """
    Startup function to be called at the beginning of the plotting process
    Here you can modify the diagram object before any plotting is done.
    """
    diagram = super().startup(diagram)
    return diagram