pingwyn.profile_fix_zero
Shift a profile such that for each curve in the profile, the points at x = 0 or y = 0 are set to zero.
- param curve:
The profile to shift.
- type curve:
pingwyn.Profile
- param strat:
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.
- type strat:
{“x”, “origin”, “y”, “zero”}
- returns:
The shifted profile.
- rtype:
pingwyn.Profile