...
Code Block | ||||
---|---|---|---|---|
| ||||
using Plots theta = Vector{Float64}() x0 = Vector{Float64}() lambda = Vector{Float64}() open(ARGS[1]) do f for line in readlines(f) fields = split(line) if length(fields) == 0 continue end if fields[1] != "ave." continue end t = parse(Float64, fields[5]) if t % 1 != 0 continue end push!(theta, t) push!(x0, parse(Float64, fields[8])) push!(lambda, parse(Float64, fields[9])) end end plot(theta, x0, legend=false) xlabel!("theta (degrees)") ylabel!("X0") savefig("t.pdf") |
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...