Plotting with axes in different units

In this example we demonstrate how to plot intensity data with detector axes expressed in different units. It serves as a supporting example to the Accessing simulation results tutorial.

  • The standard Cylinders in DWBA sample is used to setup the simulation.
  • When the simulation is completed, the Simulation::result() method is used to get a SimulationResult object.
  • Depending on an additional parameter IDetector2D.NBINS, IDetector2D.DEGREES, IDetector2D.QYQZ, it will be plotted with axes defined either in millimeters (default units of RectangularDetector), detector bins, degrees or in $Q$-space.
  • Note that the given parameter only affects min/max values of histogram axes (there is no rebinning involved).

Intensity images

auto/Examples/scatter2d/AxesInDifferentUnits.py