Plots are the best way to show simulation results.
Here are some examples of figures with multiple subplots and axes with Python and Matplotlib.
The example code can be found at the end of this post.
Please find the complete code to generate the figure above at the end of this post.
I plan to write a bunch of posts about simulating dynamic systems using Python.
I will be using the mass-spring-damper (MSD) system as an example through those posts so here is a brief description of the typical MSD system in state space.
The differential equation that describes a MSD is:
x : position of mass [m] at time t [s]
m : mass [kg]
c : viscous damping coefficient [N s / m]
k : spring constant [N / m]
u : force input [N]