chemdiagrams.templates.example_template
ExampleTemplate
Bases: BaseTemplate
Simple template showcasing basic style customizations for diagrams.
Source code in src/chemdiagrams/templates/example_template.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
__init__()
Modyfy constants for Example style diagrams here. e.g. self.constants.DISTANCE_TEXT_DIFFBAR = 0.05
Source code in src/chemdiagrams/templates/example_template.py
7 8 9 10 11 12 13 14 15 16 | |
color_all_numbers(diagram, color)
staticmethod
Set the colors of all numbers to the specified color
Source code in src/chemdiagrams/templates/example_template.py
31 32 33 34 35 36 37 | |
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/example_template.py
18 19 20 21 22 23 24 25 26 27 28 | |