Skip to content

Commit 43457a1

Browse files
committed
plot the phase guide at the correct phase
phase guides should be shown at pm 180 deg, not at 0. fixes #771
1 parent dc1d477 commit 43457a1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/ControlSystemsBase/src/plotting.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -701,16 +701,13 @@ A frequency vector `w` can be optionally provided.
701701
@series begin
702702
color --> :gray
703703
linestyle --> :dash
704-
[w[1],w[end]], [oneLine,oneLine]
704+
seriestype := :hline
705+
@show size(pm), size(fullPhase)
706+
((fullPhase .- pm) .* ones(1, 2))'
705707
end
706708
@series begin
707709
[wpm wpm]', [fullPhase fullPhase-pm]'
708710
end
709-
@series begin
710-
color --> :gray
711-
linestyle --> :dash
712-
[w[1] w[end]]', ((fullPhase .- pm) .* ones(1, 2))'
713-
end
714711
end
715712
end
716713
end

0 commit comments

Comments
 (0)