From e156c1e1f92a9069cf1e97a86a28335f4add34af Mon Sep 17 00:00:00 2001 From: r-sayar <89222436+r-sayar@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:27:00 +0200 Subject: [PATCH] Adding plt.show() --- docs/source/user_guide/centroiding.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/user_guide/centroiding.rst b/docs/source/user_guide/centroiding.rst index 8d57c1b95..3be97ad76 100644 --- a/docs/source/user_guide/centroiding.rst +++ b/docs/source/user_guide/centroiding.rst @@ -34,6 +34,8 @@ Let's zoom in on an isotopic pattern in profile mode and plot it. profile_spectra[0].get_peaks()[0], profile_spectra[0].get_peaks()[1] ) # plot the first spectrum + plt.show() + .. image:: img/profile_data.png Because of the limited resolution of MS instruments m/z measurements are not of unlimited precision. @@ -56,6 +58,8 @@ by storing only centroided data. Thus, many algorithms and tools assume that cen centroided_spectra[0].get_peaks()[0], centroided_spectra[0].get_peaks()[1] ) # plot as vertical lines + plt.show() + .. image:: img/centroided_data.png After centroiding, a single m/z value for every isotopic peak is retained. By plotting the centroided data as stem plot