Skip to content

Instantly share code, notes, and snippets.

@wchargin
Last active October 30, 2023 00:21
Show Gist options
  • Save wchargin/77d40c6dc6682fbe45a46c63b98526c1 to your computer and use it in GitHub Desktop.
Save wchargin/77d40c6dc6682fbe45a46c63b98526c1 to your computer and use it in GitHub Desktop.
plot backpack battles item chances
round common rare epic legend godly
1 90 10 0 0 0
2 84 15 1 0 0
3 75 20 5 0 0
4 64 25 10 1 0
5 45 35 15 5 0
6 29 40 20 10 1
7 20 35 25 15 5
8 20 30 25 15 10
9 20 28 25 15 12
10 20 25 25 15 15
11 20 23 23 17 17
12 20 20 20 20 20
gnuplot --persist -e 'set key autotitle columnheader; set xrange [1:]; set xtics 1; set grid y; set title "backpack battles item chances"; set xlabel "round (#) (rounds 12-18 are the same)"; set ylabel "chance (%)"; plot for [i=1:5] "chances.dat" using 1:i+1 with linespoint'
@wchargin
Copy link
Author

wchargin commented Oct 29, 2023

Screenshot of gnuplot output from above script

@wchargin
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment