light-default notranslate"><div class="highlight"><pre><span></span><span class="n">preprocessed_random_spectrum</span> <span class="o">=</span> <span class="n">offsetter</span><span class="o">.</span><span class="n">apply</span><span class="p">(</span><span class="n">random_spectrum</span><span class="p">)</span>
<span class="n">preprocessed_random_spectrum</span><span class="o">.</span><span class="n">plot</span><span class="p">()</span>
</pre></div>
</div>
<img src="../../_images/sphx_glr_plot_ii_custom_