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

feat: zoom out based on defined axis domain preferences #3032

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hamed-musallam
Copy link
Member

Define the axis domain (x-axis for one-dimension spectra and x-axis, y-axis for two-dimension spectra) from the spectra panel preferences. Once it is defined, use Shift + f to zoom out.

close #3024

@hamed-musallam hamed-musallam linked an issue Apr 26, 2024 that may be closed by this pull request
Copy link

cloudflare-pages bot commented Apr 26, 2024

Deploying nmrium with  Cloudflare Pages  Cloudflare Pages

Latest commit: d9f80b0
Status: ✅  Deploy successful!
Preview URL: https://b35cdfa0.nmrium.pages.dev
Branch Preview URL: https://hardcoded-axis-values.nmrium.pages.dev

View logs

Copy link
Member

@lpatiny lpatiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently if you set a value to 0 (for 1D or 2D), it is not taken into account

image

@hamed-musallam
Copy link
Member Author

@lpatiny

I am still convinced that the domain preferences should be in the general settings and not in the spectra panel preferences, the panel preferences are only for the panel itself and not a general setting that is applied over the displayer. I think it could be somewhere in the general settings under the General tab or we could have a separate tab

image

@hamed-musallam
Copy link
Member Author

@lpatiny

If you believe it's preferable to keep axis domain preferences in the spectra panel preferences, please inform me so I can generate a new release of nmr-load-save and merge this pull request.

@lpatiny
Copy link
Member

lpatiny commented Apr 29, 2024

It would certainly make sense that the from / to is defined per nucleus and is not different when we have couple of nuclei.

So in this case we only need to specify 1H, 13C, 19F, ...

Something like

image

Define the axis domain (x-axis for one-dimension spectra and x-axis, y-axis for two-dimension spectra) from the spectra panel preferences. Once it is defined, use Shift + f to zoom out.

close #3024
chore: update to nmr-load-save version 0.31.0
refactor: 'Formatting' tab preferences and rename it to 'Nuclei'
refactor:  formatting object in the workspace and the predefined workspaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hardcoded axis values
2 participants