-
Notifications
You must be signed in to change notification settings - Fork 19
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
[NX] Support nD scatter plots #1446
Comments
Next step would be to understand a bit better how |
AXIS_indices
attributes
I've renamed this issue to focus on the underlying use case, which is basically to support stacks of scatter plots. For context, currently, the following code is used to decide that an axisDatasets.length === 2 && axisDatasets.every((d) => d && hasNumDims(d, 1)) ... which basically means that the This works great for simple 1D cases (cf. Where we go from here is still an open question. We considered relaxing the condition above to cover more strictly defined cases, but this would add yet another implicit convention, which does not seem like the right way forward. @loichuder (and others) suggested introducing an attribute called {
"x": "A0", // dataset to use as X coordinates
"y": "A1", // dataset to use as Y coordinates
"slice": [0] // dimension(s) on which the user should be able to slice
} |
According to new NeXus recommendations,
AXIS_indices
attribute should now be added to NXdata group as a way to properly assign an axis to a signal dimension (rather than relying on the order of theaxes
attribute).See the example 1. at https://hdf5.gitlab-pages.esrf.fr/nexus/nxdata_axes/classes/base_classes/NXdata.html
Note: This also opens the way for more complex plots with e.g. multiple axes for the same dimensions (example 2) or axes spanning multiple dimensions (example 3). The latter would be a way to properly define scatter plots.
I won't hide that I have an interest in this since we will use
AXIS_indices
spanning multiple dimensions when saving processed data and would like to have the corresponding scatterplot displayed.The text was updated successfully, but these errors were encountered: