Added scale function to PiecewiseCurve for work on BeakerContainer