<jupyter_start><jupyter_text>Examples using `nmrplot` in a notebook<jupyter_code>import nmrplot.core as npl

%load_ext autoreload
%autoreload 2
experiment_path = "../data/bruker_2d_heteronuclear"
spectrum = npl.Spectrum(experiment_path)
spectrum.threshold = 10
spectrum.get_ppm_ranges()
fig, ax = spectrum.plot_spectrum(linewidth=0.25, xlims=(12, 0), ylims=(200, 0))
fig.savefig("./test.png", dpi=300)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1345707656612529, 'fraction_numerical': 0.03944315545243619, 'mean_word_length': 8.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '95618', 'license': 'MIT', 'n_tokens_mistral': 188, 'n_tokens_neox': 164, 'n_words': 29, 'path': 'notebooks/example.ipynb', 'repo_name': 'miguelarbesu/nmrplot', 'size': '431'}