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

change how peaks are displayed in add_peaks_to_plot #24

Open
dylanhross opened this issue Aug 28, 2024 · 0 comments
Open

change how peaks are displayed in add_peaks_to_plot #24

dylanhross opened this issue Aug 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dylanhross
Copy link
Collaborator

Now I feel that the crosses are kind of an annoying way to depict fitted peaks. Little gaussian peaks (i.e. a gaussian peak only plotted over a range of +/- 2 FWHM of the mean) look much better and make it easier to interpret fitting results.

A snippet of how it should look:

x = xic_rt[(xic_rt >= prt - 2 * pwt) & (xic_rt <= prt + 2 * pwt)]
ax.plot(x, _gauss(x, prt, pht, pwt), "b-", lw=1)

Vs. how they are currently plotted:

ax.plot([prt, prt], [0, pht], 'b-', lw=1)
ax.plot([prt - (pwt / 2), prt + (pwt / 2)], [pht / 2, pht / 2], 'b-', lw=1)
@dylanhross dylanhross added the enhancement New feature or request label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant