Collection of plots inspired by MATLAB’s sisotool.
The left two plots contain the bode magnitude and phase diagrams. The top right plot is a clickable root locus plot, clicking on the root locus will change the gain of the system. The bottom left plot shows a closed loop time response.
Linear input/output systems. If sys
is SISO, use the same system for the root locus and step response. If it is desired to see a different step response than feedback(K*sys, 1)
, such as a disturbance response, sys
can be provided as a two-input, two-output system. For two-input, two-output system, sisotool inserts the negative of the selected gain K
between the first output and first input and uses the second input and output for computing the step response. To see the disturbance response, configure your plant to have as its second input the disturbance input. To view the step response with a feedforward controller, give your plant two identical inputs, and sum your feedback controller and your feedforward controller and multiply them into your plant’s second input. It is also possible to accommodate a system with a gain in the feedback.
Initial gain to use for plotting root locus. Defaults to 1 (config.defaults['sisotool.initial_gain']
).
Control of x-axis range (see matplotlib.axes.Axes.set_xlim
).
Control of y-axis range (see matplotlib.axes.Axes.set_ylim
).
matplotlib.pyplot.plot
format string, optional
Plotting style for the root locus plot(color, linestyle, etc).
If True, plot s- or z-plane grid.
List of frequencies in rad/sec to be used for bode plot.
If True, plot result in dB for the bode plot.
If True, plot frequency in Hz for the bode plot (omega must be provided in rad/sec).
If True, plot phase in degrees for the bode plot (else radians).
Limits of the to generate frequency vector. If Hz=True the limits are in Hz otherwise in rad/s. Ignored if omega is provided, and auto-generated if omitted.
Number of samples to plot. Defaults to config.defaults['freqplot.number_of_samples']
.
If True, plot gain and phase margin in the bode plot.
List of time steps to use for closed loop step response.
Examples
>>> G = ct.tf([1000], [1, 25, 100, 0]) >>> ct.sisotool(G)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4