usnistgov / PyHyperScattering

Tools for hyperspectral x-ray and neutron scattering data loading, reduction, slicing, and visualization.
Other
7 stars 9 forks source link

feat: add standard RSoXS plotting functions #148

Open andrewjlevin opened 1 month ago

andrewjlevin commented 1 month ago

Add plotting functions to make plotting RSoXS data (already processed into Xarray) in Jupyter notebooks straightforward. The plots to be added are below. The first one reads in cartesian Qy vs Qx (or pix_y vs pix_x) data while the rest read in polar data (Q vs Chi):

For all below plots, there should also be an option to select specific chi ranges (to be parallel or perpendicular to X-ray polarization). It is also often beneficial to average between scans of different polarizations if the anisotropy rotates with polarization, though this feature likely fits better somewhere outside of these plotting tools.