ControlSystems.jl icon indicating copy to clipboard operation
ControlSystems.jl copied to clipboard

Problems with getPhaseTicks and getLogTicks

Open baggepinnen opened this issue 3 years ago • 0 comments

These two functions work well when only a single system is plotted. When plotting two systems in the same plot, the ticks are chosen based on the last system only, if the last system spans other (notably fewer) ticks, there will be no ticks covering parts of the plot. An example is below, where the first command produces a nice looking plot, but the second call removes the phase ticks for most of the plot.

These two functions also cause significant problems with the ticks rendering for some of the backends, they are quite broken for plotly.

julia> P = tf(1,[1.0, 1, 0])
TransferFunction{Continuous, SisoRational{Float64}}
     1.0
-------------
1.0s^2 + 1.0s

Continuous-time transfer function model

julia> bodeplot(P*delay(1), 0.5:0.1:100)

julia> bodeplot!(P, 0.5:0.1:100)

baggepinnen avatar Jan 18 '21 07:01 baggepinnen