-
Notifications
You must be signed in to change notification settings - Fork 25
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 the contour plot behavior #3050
change the contour plot behavior #3050
Conversation
Deploying nmrium with
|
Latest commit: |
b5963a6
|
Status: | ✅ Deploy successful! |
Preview URL: | https://dcf332b6.nmrium.pages.dev |
Branch Preview URL: | https://1337-contour-plot-does-not-a.nmrium.pages.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functionalities looks better but the test are not passing. Please have a look why.
@hamed-musallam Please review the code as well.
d65be31
to
b213644
Compare
b213644
to
d65be31
Compare
@hamed-musallam Could you change the behaviour so that when we move the sliders the spectrum is updated on the fly (and not on mouse release like currently) ? A small debounce will certainly be required. |
Do we want these new very large files in the repo? |
@jobo322 Please use 512 x 512, no need to have 1024 on 1024 I think. The files should then be around 1.3 Mb. Just by removing the \n + spaces I went from 22Mb to 5.5 Mb. Michael and me are also wondering if we can directly load a NMRium file. Because in this case we would also have the zip compression. |
f910402
to
08fad9a
Compare
Functionality looks ok to me but for the manual change of slider that should update the contour plot after debouncing (before release of the cursor). |
f63a7b6
to
efd5d2f
Compare
What is left is to refactor the spectrum object and move the contours Options object to {
contourOptions:{
positive: {
contourLevels: [15, 100],
numberOfLayers: 10,
numberOfZoomLevels: 10,
},
negative: {
contourLevels: [15, 100],
numberOfLayers: 10,
numberOfZoomLevels: 10,
}
} |
it is fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality looks ok to me
Can be merged after addressing my comments. |
Can we merge this PR, or are there still comments? |
numberOfZoomLevels
is the number of steps, the levels will be sampled in an exponential scale (1.25**zoom) wherezoom
is an integer value between [0-`numberOfZoomLevels].