Skip to content

Commit

Permalink
plot the phase guide at the correct phase
Browse files Browse the repository at this point in the history
phase guides should be shown at pm 180 deg, not at 0.

fixes #771
  • Loading branch information
baggepinnen committed Feb 1, 2023
1 parent dc1d477 commit 43457a1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/ControlSystemsBase/src/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -701,16 +701,13 @@ A frequency vector `w` can be optionally provided.
@series begin
color --> :gray
linestyle --> :dash
[w[1],w[end]], [oneLine,oneLine]
seriestype := :hline
@show size(pm), size(fullPhase)
((fullPhase .- pm) .* ones(1, 2))'
end
@series begin
[wpm wpm]', [fullPhase fullPhase-pm]'
end
@series begin
color --> :gray
linestyle --> :dash
[w[1] w[end]]', ((fullPhase .- pm) .* ones(1, 2))'
end
end
end
end
Expand Down

0 comments on commit 43457a1

Please sign in to comment.