<jupyter_start><jupyter_text>添加反应物产物信息<jupyter_code>%matplotlib inline
from catplot.ep_components.ep_canvas import EPCanvas
from catplot.ep_components.ep_lines import ElementaryLine<jupyter_output><empty_output><jupyter_text>创建画布<jupyter_code>canvas = EPCanvas()<jupyter_output><empty_output><jupyter_text>创建带有反应的Energy Profile Line<jupyter_code>line = ElementaryLine([0.0, 1.2, 0.8], rxn_equation="A_s + B_s <-> A-B_2s -> AB_g + 2_s")<jupyter_output><empty_output><jupyter_text>添加到画布中<jupyter_code>canvas.add_line(line)<jupyter_output><empty_output><jupyter_text>添加辅助线和物种注释<jupyter_code>canvas.add_horizontal_auxiliary_line(line)
canvas.add_vertical_auxiliary_lines(line)
canvas.add_species_annotations(line)<jupyter_output><empty_output><jupyter_text>效果<jupyter_code>canvas.draw()
canvas.figure<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1162227602905569, 'fraction_numerical': 0.009685230024213076, 'mean_word_length': 16.97826086956522, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '158872', 'license': 'MIT', 'n_tokens_mistral': 364, 'n_tokens_neox': 369, 'n_words': 24, 'path': 'examples/energy_profile_examples/add_species_annotations.ipynb', 'repo_name': 'PytLab/catplot', 'size': '826'}