Skip to content

Commit a41d33b

Browse files
authored
Documenting setPlotScale(str) in bodeplot
I had problems finding the `setPlotScale(str)` option so i added it in a few places i searched for in this functionality.
1 parent 6ee112b commit a41d33b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plotting.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ end
255255
"""`fig = bodeplot(sys, args...)`, `bodeplot(LTISystem[sys1, sys2...], args...; plotphase=true, kwargs...)`
256256
257257
Create a Bode plot of the `LTISystem`(s). A frequency vector `w` can be
258-
optionally provided.
258+
optionally provided. To change the Magnitude scale see `setPlotScale(str)`
259259
260260
`kwargs` is sent as argument to Plots.plot."""
261261
bodeplot
@@ -270,7 +270,7 @@ bodeplot
270270

271271
for (si,s) = enumerate(systems)
272272
mag, phase = bode(s, w)[1:2]
273-
if _PlotScale == "dB"
273+
if _PlotScale == "dB" # Set by setPlotScale(str) globally
274274
mag = 20*log10.(mag)
275275
end
276276

0 commit comments

Comments
 (0)