Add readywave plot script
This commit is contained in:
parent
6832d0e627
commit
7f2903d404
26
plot/readywave.R
Normal file
26
plot/readywave.R
Normal file
@ -0,0 +1,26 @@
|
||||
library(ggplot2)
|
||||
library(dplyr, warn.conflicts = FALSE)
|
||||
library(scales)
|
||||
library(jsonlite)
|
||||
library(readr)
|
||||
|
||||
# Load the arguments (argv)
|
||||
args = commandArgs(trailingOnly=TRUE)
|
||||
|
||||
input_file = args[1]
|
||||
|
||||
df = read_delim(input_file, delim=",", show_col_types = FALSE)
|
||||
|
||||
dpi = 96
|
||||
h = 2
|
||||
w = 6
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
|
||||
p = ggplot(df, aes(time_ms)) +
|
||||
geom_histogram(bins=80) +
|
||||
theme_bw() +
|
||||
labs(x = "Time (ms)", title="Nanos6: readywave time")
|
||||
# TODO: Add ntasks and taskwork to labels
|
||||
|
||||
ggsave(sprintf("%s.png", input_file), plot=p, width=w, height=h, dpi=dpi)
|
Loading…
Reference in New Issue
Block a user