Skip to content

Adding nexus attribute to force ploting in log scale #1819

Answered by loichuder
mjdiff asked this question in Q&A
Discussion options

You must be logged in to vote

This can be done by using the SILX_style attribute. As the name suggests, it is not an official NeXus attribute but it is supported in silx and H5web.

For a semi-log in Y, the NXData needs an attribute SILX_style with the following value: {"signal_scale_type":"log"}.

For a log-log plot, the NXData needs an attribute SILX_style with the following value: {"signal_scale_type":"log", "axis_scale_type": ["log"]} (note that axis_scale_type is a list whose length corresponds to the number of axes).

You can find an example at https://h5web.panosc.eu/mock at the /nexus_entry/log_spectrum NXData group.

Note that these are only preferential settings, the user can still change the scale of the differ…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mjdiff
Comment options

mjdiff Jun 12, 2025
Maintainer Author

Answer selected by loichuder
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #1818 on June 12, 2025 09:15.