helperPlot.jl 1.02 KB
Newer Older
William F Godoy's avatar
William F Godoy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

import CSV
import DataFrames
using Plots

function plot_CSV_3col( filename::String )
  
  df = CSV.File(filename) |> DataFrames.DataFrame
  
  x = df[!,1]
  y = df[!,2]
  z = df[!,3]
  
  display(Plots.scatter( x, y, groups = z, xaxis=:log, yaxis=:log, 
                      legendfontsize=9,
                      legend = :outertopleft, 
                      # [shapes], size, alpha
                      marker = ([:x :+ :star4 :vline :square :circle], 7, 1.0),
                      xlabel = "cumulative output ncells ( output_counter x ncells )", 
                      ylabel = "cumulative output data size (bytes)", 
                      title = "Amrex Castr Sedov hydro test output size",
                      size=(1200,850)
                      ) 
          )
  readline()
  
end



function main()

  # modify this to the file path
34
35
  #filename = "/home/wgodoy/hdd_home/work/proxy_io/AmrexCastro/plot_size.csv"
  filename = "/home/wgodoy/hdd_home/work/proxy_io/AmrexCastro/plot_size_case4.csv"
William F Godoy's avatar
William F Godoy committed
36
37
38
39
40
  plot_CSV_3col(filename)
end

main()