diffractsim icon indicating copy to clipboard operation
diffractsim copied to clipboard

plot_intensity() slice plot does not respect the square_root option.

Open hadmack opened this issue 2 years ago • 0 comments

When using plot_intensity() with the slice_y_pos option, the square_root scaling is not respected. In plot_intensity.py line 152-153 the units are always W/m^2 and I**2 is plotted even if the I = √I was not computed due to the square_root=False.

Slices are only plotted correctly when square_root=True.

hadmack avatar Nov 17 '23 21:11 hadmack