StefanRickli / anp

(A)nimated (N)yquist (P)lot. A Matlab program that draws a reasonable Nyquist diagram of any given rational transfer function and allows the user to explore it.
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Arrow annotations not drawn correctly when zoomed far in #2

Closed StefanRickli closed 7 years ago

StefanRickli commented 7 years ago

Outline:

Transfer functions with a high relative degree of numerator and denominator produce plots with very small amplitudes which lead Matlab to draw arrow-annotations incorrectly.

StefanRickli commented 7 years ago

Currently we simply call the arrow drawing function with the location of the tip and the angle of the arrow within the axis' coordinate system.

A potential fix would be to switch the position argument from axis coordinates to subplot relative fractions. But this coordinate transform will become very tedious.

StefanRickli commented 7 years ago

With regard to the coordinate transformation: Fortunately one doesn't always have to do everything by himself.

DS2NFU does the job perfectly.

Stripped the function down in order to keep code ballast low.