pingwyn.profile_fix_zero
- pingwyn.profile_fix_zero(profile, strat='x')
Shift a profile such that for each curve in the profile, the points at x = 0 or y = 0 are set to zero.
- Parameters:
curve (pingwyn.Profile) – The profile to shift.
strat ({"x", "origin", "y", "zero"}) – The shifting strategy to apply. “x” and “origin” will shift the y-axis, such that for each curve in the profile, the curve if shifted such that at profile.x = 0, y = 0. “y” and “zero” will find the point closest to y = 0 for each curve, and shift that point to y = 0. For both strategy types, the entire curve is shifted.
- Returns:
The shifted profile.
- Return type: