Replies: 7 comments 2 replies
-
|
Is this what you have in mind? JuliaControl/ControlSystems.jl#1065 adds a using ControlSystemsBase, GLMakie # or CairoMakie
P = tf(4, [1, 2, 1, 0]) # 4 / (s(s+1)²)
CSMakie.nyquistplot(P; polar=true, rlimits=(0, 3), unit_circle=true)This draws the Nyquist curve in a Note that the Makie support in ControlSystemsBase is currently marked experimental. The Plots.jl recipe could in principle gain a similar option via |
Beta Was this translation helpful? Give feedback.
-
|
Yes, absolutely! Many thanks! Except when I cut n paste your code into mine I get: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Are you using the development version of ControlSystems on the PR branch I linked? The PR is not merged yet so it will not work if you use the released version of ControlSystems? Run the following to install the developement version (in a new julia REPL) and then try again using Pkg
Pkg.add(url="https://github.com/JuliaControl/ControlSystems.jl", subdir="lib/ControlSystemsBase", rev="polar-nyquist") |
Beta Was this translation helpful? Give feedback.
-
|
Here's one I produced using TikZ, based on a TikZ example: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In order to generate a Nyquist plot for my book on control systems (heavily using Julia and examples from
ControlSystems.jlandDynamicalSystems.jl), and in order to explain how simple it is to do controller design using polar coordinates, I am forced to useTikZorAsymptotebecause I don't think it's possible to do this with the aforementioned packages.Of course, it is vital to plot and print polar plots with strictly controlled aspect ratios otherwise the circles become ellipses and reading gain and phase (from printed plots) becomes irksome to say the least. I am of the old school that insists that students should try to use "manual" techniques before switching to CACSD (e.g. MATLAB, Scilab, and your packages, to name but a few, and presumably AI) in order that they can internalise what is going on before they use CACSD methods, which obviously I like to demonstrate.
Here's an extract from my book: Unfortunately, MATLAB\text{\textsuperscript\textregistered}, and Julia (\texttt{ControlSystems.jl}) both default to plotting Nyquist diagrams using rectilinear axes. This can be confusing when you are just beginning to get used to polar diagrams.
Please could the
nyquistplot()function have an option for correctly scaled polar graph paper as a background?Beta Was this translation helpful? Give feedback.
All reactions