@@ -400,9 +400,8 @@ def scale_to(self, target_diff_object, q=None, tth=None, d=None, offset=None):
400400 """Returns a new diffraction object which is the current object but
401401 rescaled in y to the target.
402402
403- By default, if none of `q`, `tth`, or `d` are provided,
404- the scaling is based on the maximal x-array value from both objects.
405- The y-value in the target at the closest specified x-value will be used as the factor to scale to.
403+ By default, if `q`, `tth`, or `d` are not provided, scaling is based on the max q-value from each object.
404+ Otherwise, y-value in the target at the closest specified x-value will be used as the factor to scale to.
406405 The entire array is scaled by this factor so that one object places on top of the other at that point.
407406 If multiple values of `q`, `tth`, or `d` are provided, an error will be raised.
408407
@@ -411,7 +410,7 @@ def scale_to(self, target_diff_object, q=None, tth=None, d=None, offset=None):
411410 target_diff_object: DiffractionObject
412411 the diffraction object you want to scale the current one onto
413412
414- q, tth, d : float, optional, default is q with the maximal x-array value from each object
413+ q, tth, d : float, optional, default is the max q- value from each object
415414 The value of the x-array where you want the curves to line up vertically.
416415 Specify a value on one of the allowed grids, q, tth, or d), e.g., q=10.
417416
0 commit comments