In [1]:
%matplotlib inline
In [2]:
import pandas as pd
In [3]:
! cargo run --release --bin=goy_shell > goy.csv
   Compiling ndarray-odeint v0.2.2 (file:///home/teramura/workspace/ndarray-odeint)
    Finished release [optimized] target(s) in 2.35 secs
     Running `target/release/goy_shell`
In [4]:
df = pd.read_csv("goy.csv").set_index("time")
In [5]:
df[["r4", "r8", "r16", "r26"]].plot()
Out[5]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f624c0fbc18>
In [6]:
(df**2).mean().plot()
plt.yscale("log")