creams: simplify granularity figure

This commit is contained in:
Rodrigo Arias Mallo 2021-03-30 16:07:14 +02:00
parent 76deac0a63
commit 389d3f6310
2 changed files with 3 additions and 18 deletions

View File

@ -28,7 +28,7 @@ let
];
# Max. number of iterations
iterations = [ 10 20 ];
iterations = [ 20 ] ++ optionals (enableExtended) [ 10 ];
nodes = [ 1 ] ++ optionals (enableExtended) (range2 2 16);
};

View File

@ -70,28 +70,13 @@ ggsave("normalized.time.pdf", plot=p, width=w, height=h, dpi=dpi)
# ---------------------------------------------------------------------
p = ggplot(df, aes(x=granul, y=time)) +
p = ggplot(df, aes(x=granul, y=time, color=branch)) +
geom_point(shape=21, size=3) +
geom_line(aes(y=median.time, group=iterations)) +
geom_line(aes(y=median.time, group=branch)) +
theme_bw() +
facet_wrap(branch ~ .) +
labs(x="granul", y="Time (s)", title="Creams granularity: time",
subtitle=input_file) +
theme(plot.subtitle=element_text(size=8))
ggsave("time.png", plot=p, width=w, height=h, dpi=dpi)
ggsave("time.pdf", plot=p, width=w, height=h, dpi=dpi)
# ---------------------------------------------------------------------
p = ggplot(df, aes(x=granul, y=time.iter, color=iterations)) +
geom_point(shape=21, size=3) +
geom_line(aes(y=median.time.iter, group=iterations)) +
theme_bw() +
facet_wrap(branch ~ .) +
labs(x="granul", y="Time (s)", title="Creams granularity: time / iterations",
subtitle=input_file) +
theme(plot.subtitle=element_text(size=8))
ggsave("time.iter.png", plot=p, width=w, height=h, dpi=dpi)
ggsave("time.iter.pdf", plot=p, width=w, height=h, dpi=dpi)