aboutsummaryrefslogtreecommitdiff
path: root/unflattened-multiver-counts.gnuplot
diff options
context:
space:
mode:
authorW. Kosior <koszko@koszko.org>2025-09-19 12:47:44 +0200
committerW. Kosior <koszko@koszko.org>2025-09-19 13:09:45 +0200
commit7000b1f2bb2fca5b7707c9b1a9f58f43100212d3 (patch)
treecc5531b93b8e76c39e3c58d52574f68e86c3f05e /unflattened-multiver-counts.gnuplot
downloadAGH-msc-thesis-magister.tar.gz
AGH-msc-thesis-magister.zip
Initial commit.HEADmagister
Diffstat (limited to 'unflattened-multiver-counts.gnuplot')
-rw-r--r--unflattened-multiver-counts.gnuplot51
1 files changed, 51 insertions, 0 deletions
diff --git a/unflattened-multiver-counts.gnuplot b/unflattened-multiver-counts.gnuplot
new file mode 100644
index 0000000..5bd5201
--- /dev/null
+++ b/unflattened-multiver-counts.gnuplot
@@ -0,0 +1,51 @@
+#!/usr/bin/env gnuplot
+
+## SPDX-License-Identifier: CC0-1.0
+##
+## Copyright (C) 2025 Woj. Kosior <koszko@koszko.org>
+
+if (!exists("counts_filename")) counts_filename = \
+ "unflattened-multiver-counts.csv";
+
+if (!exists("out_filename")) out_filename = "unflattened-multiver-counts.svg";
+
+set terminal svg size 800,400 font "DejaVu,sans,14.5";
+set output out_filename;
+#set title "Numbers of rebuilt packages present in Debian, categorized by their unflattenable build dependency counts.";
+set ylabel "Built project count";
+set xlabel "Remaining dependency conflicts count";
+set datafile separator ",";
+set boxwidth 0.5;
+set style fill solid border -1;
+set key noautotitle;
+set xtics scale 0;
+set lmargin 11;
+set rmargin 3.5;
+set linetype 1 linecolor rgb "0x777777";
+set linetype 2 linecolor rgb "0x333333";
+
+stats "unflattened-multiver-counts.csv" using "ALL-PACKAGES" nooutput;
+
+lbl_shift = STATS_max / 40;
+set yrange [0:(STATS_max * 1.1)];
+
+plot counts_filename \
+ using 0:"ALL-PACKAGES":xtic(stringcolumn("MULTIVER-COUNT")) \
+ with boxes \
+ title "All rebuilt", \
+ "" \
+ using 0:"IN-DEBIAN-PACKAGES" \
+ with boxes fill pattern 5 \
+ title "Packaged in Debian", \
+ "" \
+ using 0:\
+ (column("ALL-PACKAGES") + lbl_shift):\
+ (column("ALL-PACKAGES")) \
+ with labels, \
+ "" \
+ using 0:\
+ (column("IN-DEBIAN-PACKAGES") + lbl_shift):\
+ ((column("IN-DEBIAN-PACKAGES") + STATS_max / 20 < \
+ column("ALL-PACKAGES")) ? \
+ stringcolumn("IN-DEBIAN-PACKAGES") : "") \
+ with labels;