Skip to content

Commit 4a87d00

Browse files
add example
1 parent e91661d commit 4a87d00

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/source/examples/diffraction_objects_example.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ For convenience, you can also apply an offset to the scaled new diffraction obje
117117
118118
scaled_and_offset_measured = measured.scale_to(calculated, q=5.5, offset=0.5)
119119
120+
You can call `scale_to()` without specifying a value for `q`, `tth`, or `d`.
121+
In this case, the scaling will be done based on the maximal x-array value of both diffraction objects:
122+
123+
.. code-block:: python
124+
125+
scaled_measured = measured.scale_to(calculated)
126+
120127
DiffractionObject convenience functions
121128
---------------------------------------
122129

0 commit comments

Comments
 (0)