Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding plt.show() #446

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/source/user_guide/centroiding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down