Phase Plot Wrapping

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ulibru
Newbie
Newbie
Posts: 54
Joined: Tue Jul 21, 2009 12:00 am

Phase Plot Wrapping

Post by ulibru » Thu Jun 27, 2024 2:29 pm

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 192 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?

Yeray
Site Admin
Site Admin
Posts: 9562
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Phase Plot Wrapping

Post by Yeray » Fri Jun 28, 2024 12:18 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply