}}}$)&#39;, ylabel=&#39;Intensity (a.u.)&#39;&gt;
</pre></div>
</div>
<p>To do so, users can define their own preprocessing methods, which must be of the form given below and return the updated intensity_data and spectral_axis.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">func</span><span class="p">(</span><span class="n">intensity_data</span><span class="p">,</span> <span class="n">spectral_axis</span><span class="p">,</