From 5eeb028ff26ec7e2569ba3e4c2439c9481402fbe Mon Sep 17 00:00:00 2001 From: Sebastian Rust Date: Thu, 4 Jun 2026 14:19:49 +0200 Subject: [PATCH] fix(graphs): downsampled flow and bandwidth to not exceed latex memory limit --- figures/Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/figures/Makefile b/figures/Makefile index 86efb5e..b040d63 100644 --- a/figures/Makefile +++ b/figures/Makefile @@ -26,6 +26,8 @@ SENDER_CPU_ARGS ?= RECEIVER_CPU_ARGS ?= TIMESERIES_ARGS ?= IDT_CDF_ARGS ?= +FLOWS_IDT_CDF_ARGS ?= +BANDWIDTH_IDT_CDF_ARGS ?= ROOT := .. RAW_DATA_ROOT ?= $(ROOT)/../raw_data @@ -101,6 +103,14 @@ $(OUT)/idt_cdf_zoom.pdf $(OUT)/idt_cdf_zoom.tex: fig_idt_cdf.R common.R $(CSVS) @mkdir -p $(OUT) Rscript $< --data $(DERIVED) $(FMT_FLAG) $@ --zoom $(IDT_CDF_ARGS) +$(OUT)/flows_idt_cdf.pdf $(OUT)/flows_idt_cdf.tex: fig_flows_idt_cdf.R common.R $(CSVS) Makefile + @mkdir -p $(OUT) + Rscript $< --data $(DERIVED) $(FMT_FLAG) $@ $(FLOWS_IDT_CDF_ARGS) + +$(OUT)/bandwidth_idt_cdf.pdf $(OUT)/bandwidth_idt_cdf.tex: fig_bandwidth_idt_cdf.R common.R $(CSVS) Makefile + @mkdir -p $(OUT) + Rscript $< --data $(DERIVED) $(FMT_FLAG) $@ $(BANDWIDTH_IDT_CDF_ARGS) + $(OUT)/%.pdf: fig_%.R common.R $(CSVS) Makefile @mkdir -p $(OUT) Rscript $< --data $(DERIVED) --pdf $@ @@ -177,7 +187,8 @@ direct-link-tikz: BANDWIDTHS_ARGS = EXP=bandwidths SETUP=bandwidths \ SOLUTIONS="1:250 2:500 4:1000 8:2000" \ - FIG_STEMS="bandwidth_idt_cdf" + FIG_STEMS="bandwidth_idt_cdf" \ + BANDWIDTH_IDT_CDF_ARGS="--sample 10000" bandwidths: $(MAKE) pdfs $(BANDWIDTHS_ARGS) @@ -187,7 +198,8 @@ bandwidths-tikz: FLOWS_ARGS = EXP=flows SETUP=flows \ SOLUTIONS="2:2 4:4 8:8 16:16 30:30" \ - FIG_STEMS="flows_idt_cdf" + FIG_STEMS="flows_idt_cdf" \ + FLOWS_IDT_CDF_ARGS="--sample 10000" flows: $(MAKE) pdfs $(FLOWS_ARGS)