Page 1 of 1

Phase Plot Wrapping

Posted: Thu Jun 27, 2024 2:29 pm
by 10553945
A standard phase plot usually shows Y values between -P and +Pi or between -180° and +180°
Drawing such a plot with TChart results in connection lines where the phase wrapping occurs.
Phase.png
Phase.png (82.72 KiB) Viewed 11555 times
The connection lines appears as more or less vertical lines depending on the zooming.
What is the proper way to draw the phase without the connecting line? Is it possible?

Re: Phase Plot Wrapping

Posted: Fri Jun 28, 2024 12:18 pm
by yeray
Hello,

You could detect when the values are jumping from -180 to 180 or vice-versa and add a null point between them.
Or maybe detect when the difference between the value being currently added and the last value exceeds a threshold.