scale_and_shift#
- stellarphot.plotting.scale_and_shift(data_set, scale, shift, pos=True)[source]#
Scales and shifts data set passed in.
- Parameters:
- data_setarray-like
The data to scale and shift.
- scalefloat
The amount to scale the data by.
- shiftfloat
The amount to shift the data by (in scaled units).
- posbool, optional
Is data displayed in positive or negative direction? Default is True.
- Returns:
- data_setarray-like
The scaled and shifted data.