Set ylims in marginplot

maltee1
Fri, 08 Aug 2025 09:12:08 +0000
General Usage

How do I set y limits for marginplot (or bodeplot)? ylims just sets the limits for both the margin and the phase the same, which is rarely helpful. There is ylimsphase, which only works for bodeplot, not marginplot, and doesn’t seem to do anything (it’s commented out in the code).
Is there a way to adjust the limits after plotting?

Minimal working example (has infinite margin, so marginplot is no different from bodeplot, but that’s not what I have trouble with anyway):

using Plots
using ControlSystemsBase
s=tf('s')
marginplot(1/(s+10))
title!("")

4 posts - 2 participants