Commit 6cff4491 authored by William F Godoy's avatar William F Godoy
Browse files

helperPlot improvements

parent 72974151
......@@ -3,7 +3,7 @@ import CSV
import DataFrames
using Plots
function plot_CSV_3col( filename::String )
function plot_CSV_3col( filename::String, levels::Bool = True )
df = CSV.File(filename) |> DataFrames.DataFrame
......@@ -12,22 +12,33 @@ function plot_CSV_3col( filename::String )
z = df[!,"caseID"]
fig1 = Plots.scatter( x, y, groups = z, xaxis=:log, yaxis=:log,
legendfontsize=7,
legend = :outertopleft,
# yaxis=:log,
fig1 = Plots.scatter( x, y, groups = z,
xtickfont = font(12, "Courier"),
ytickfont = font(12, "Courier"),
framestyle = :box,
legendfontsize=9,
legend = :bottomright,
# [shapes], size, alpha
marker = ([:x :+ :star4 :vline :square :circle], 7, 1.0),
marker = ([:x :+ :star4 :vline :square :circle], 5, 1.0),
markercolor = [:blue :green :red :orange :pink],
xlabel = "cumulative output ncells ( output_counter x ncells )",
ylabel = "cumulative output data size (bytes)",
title = "Amrex Castro hydro_test Sedov 2d.cyl_in_cartcoords output size",
size=(1200,850),
reuse = false
xlabel = "Cumulative Level 0 ncells ( output_counter x ncells )",
xguidefontsize=15,
ylabel = "Cumulative output data size (bytes)",
yguidefontsize=15,
title = "AMReX Castro Sedov Output Sizes",
size=(1000,900),
reuse = true,
thickness_scaling = 1,
ticks=:native
)
Plots.gui(fig1)
#Plots.png(fig1)
readline()
if !levels
return
end
yL0 = df[!,3]
yL1 = df[!,4]
yL2 = df[!,5]
......@@ -62,9 +73,9 @@ end
function main()
# modify this to the file path
filename = "/home/wgodoy/hdd_home/work/proxy_io/AmrexCastro/plot_size.csv"
filename = "/Users/wfg/data/AmrexCastro/plot_size_case4.csv"
# filename = "/home/wgodoy/hdd_home/work/proxy_io/AmrexCastro/plot_size_case4.csv"
plot_CSV_3col(filename)
plot_CSV_3col(filename, false)
end
main()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment