-system("mkdir -pv graphs")
-for (m in c("R", "I")) {
- for (d in c("1", "N")) {
- for (r in c("10:1", "1:1", "1:10")) {
- for (t in c("line", "torus", "hcube")) {
- for (p in c("grid", "cluster")) {
- message(sprintf(">>> Drawing: %s%s / %s / %s / %s", m, d, r, p, t))
- pdf(file=sprintf("graphs/%s%s-%s-%s-%s.pdf", m, d, r, p, t))
- draw2(#subset(ds, grepl("[lt]_plain", Algo)),
- draw_mode=m, draw_distrib=d, draw_ratio=r,
- draw_topo=t, draw_platform=p)
- dev.off()
+ msg("Third test, with all algorithms...");
+ draw(draw_distrib="N")
+
+ msg("... with draw2()...")
+ draw2(draw_distrib="N")
+ }
+
+} else {
+
+ pdf.options(colormodel="grey")
+ system("mkdir -pv graphs")
+ for (m in c("R", "I")) {
+ for (d in c("1", "N")) {
+ for (r in c("10:1", "1:1", "1:10")) {
+ for (t in c("line", "torus", "hcube")) {
+ for (p in c("grid", "cluster")) {
+ message(sprintf(">>> Drawing: %s%s / %s / %s / %s", m, d, r, p, t))
+ filename <- sprintf("graphs/%s%s-%s-%s-%s.pdf", m, d, r, p, t)
+ pdf(file=filename)
+ draw2(#subset(ds, grepl("[lt]_plain", Algo)),
+ draw_mode=m, draw_distrib=d, draw_ratio=r,
+ draw_topo=t, draw_platform=p)
+ dev.off()
+ embedFonts(file=filename, options="-dPDFSETTINGS=/prepress")
+ }