-
Is your feature request related to a problem?The NXdata entry has attributes like axes and signal, whihc makes h5web automatically plot the 1D plot when the dataset is selected. Requested solution or featureWould it be possible for some NXdata to plot a 1D plot using a log scale as default instead of a linear scale? Alternatives you've consideredMaybe adding an additional attribute to NXdata, like log_scale, could enforce this automatically. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This can be done by using the For a semi-log in Y, the NXData needs an attribute For a log-log plot, the NXData needs an attribute You can find an example at https://h5web.panosc.eu/mock at the Note that these are only preferential settings, the user can still change the scale of the different axes at will. |
Beta Was this translation helpful? Give feedback.
-
Converted as a discussion since it can be useful for future reference |
Beta Was this translation helpful? Give feedback.
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 thataxis_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…