You need to define your distance metric for measuring the distance. Is it just in the Y direction, or do you want it to include X distance as well?
If it is just in the Y direction, the previous answer is correct. Simply add or subtract a constant to your original graph, and the Y distance will exactly the same distance for every point. When you plot the curve, it doesn't look like it is the same vertical distance, but it is.
If you are including the X direction in your distance measurement, you need to do a lot more work. Basically, you will need to check every point in the original curve against the surrounding points. Any points that are too close should be moved up or down until they are correct. For each point, you only need to check the correspon
ding points that are within the distance in the X direction. It wouldn't be too difficult to come up with an efficient algorithm to do this. For this to look right on the screen, you will need to have a fixed ratio of the X and Y axis (no autoscaling), or they will still look distorted.
Bruce
Bruce Ammons
Ammons Engineering