require("LuaMath")
local plot = require "lua-plot"
function func(s)
return 1000/((1+s)*(1+s/100))
end
local bp = plot.bodePlot{
func = func,
ini = 0.01,
finfreq = 1000,
steps = 20
}
bp.mag:Show({title="Magnitude Plot",size="HALFxHALF"})
bp.phase:Show({title="Phase Plot",size="HALFxHALF"})
More stuff is welcome.