magneticScattering.plot.scale_data#
- scale_data(data, scale)#
Scale the values in the array so that the minimum is scale[0] and maximum is scale[1].
- Parameters:
- datanp.ndarray
Array to be scaled.
- scale2-list of float
Scaling range as a list: [lower, upper].
- Returns:
- np.ndarray
Scaled array.