plot
Module¶
- compare_bode_bicycles(bikes, speed, u, y, fig=None)¶
Returns a figure with the Bode plots of multiple bicycles.
- Parameters:
- bikeslist
A list of bicycleparameters.Bicycle instances.
- speedfloat
The speed at which to evaluate the system.
- uinteger
An integer between 0 and 1 corresponding to the inputs roll torque and steer torque.
- yinteger
An integer between 0 and 3 corresponding to the inputs roll rate, steer rate, roll angle and steer angle.
- Returns:
- figmatplotlib.Figure instance
The Bode plot.
Notes
The phases are matched around zero degrees at with respect to the first frequency.
- plot_eigenvalues(bikes, speeds, colors=None, linestyles=None, largest=False, show=False)¶
Returns a figure with the eigenvalues vs speed for multiple bicycles.
- Parameters:
- bikeslist
A list of Bicycle objects.
- speedsndarray, shape(n,)
An array of speeds.
- colorslist
A list of matplotlib colors for each bicycle.
- linestyleslist
A list of matplotlib linestyles for each bicycle.
- largestboolean
If true, only plots the largest eigenvalue.
- Returns:
- figmatplotlib figure