Add spawner statistics and plots
This commit is contained in:
parent
fe01e1935c
commit
55fb28ee19
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -1,2 +1,3 @@
|
||||
*.jpg filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
|
21
soulcage_statistics/data.csv
Normal file
21
soulcage_statistics/data.csv
Normal file
@ -0,0 +1,21 @@
|
||||
spawners,redstone,glowstone,sugar,sticks,bottles,gunpowder,eyes
|
||||
1,134,128,175,324,135,149,170
|
||||
2,313,339,333,575,339,322,279
|
||||
3,466,468,506,940,469,504,463
|
||||
4,627,620,599,1171,558,644,601
|
||||
5,773,710,791,1451,736,782,741
|
||||
6,768,815,800,1735,863,889,854
|
||||
7,976,890,963,2054,966,951,916
|
||||
8,997,977,1015,2102,1024,1071,1078
|
||||
9,1089,1053,1112,2137,1093,1057,1052
|
||||
10,1084,1052,1108,2226,1143,1128,1128
|
||||
11,1154,1152,1223,2342,1194,1150,1130
|
||||
12,1232,1188,1151,2236,1215,1190,1135
|
||||
13,1292,1232,1273,2432,1264,1273,1223
|
||||
14,1358,1308,1360,2536,1284,1350,1357
|
||||
15,1251,1356,1236,2742,1233,1334,1263
|
||||
16,1321,1395,1393,2768,1345,1440,1346
|
||||
17,1495,1379,1472,2764,1440,1456,1408
|
||||
18,1506,1496,1382,2829,1450,1528,1416
|
||||
19,1526,1314,1455,2988,1574,1453,1469
|
||||
20,1559,1602,1471,2942,1531,1577,1531
|
|
BIN
soulcage_statistics/individual_items_rates.pdf
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/individual_items_rates.pdf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
soulcage_statistics/individual_items_rates.png
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/individual_items_rates.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
soulcage_statistics/item_ratios.pdf
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/item_ratios.pdf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
soulcage_statistics/item_ratios.png
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/item_ratios.png
(Stored with Git LFS)
Normal file
Binary file not shown.
80
soulcage_statistics/main.jl
Normal file
80
soulcage_statistics/main.jl
Normal file
@ -0,0 +1,80 @@
|
||||
using Plots
|
||||
using CSV
|
||||
using DataFrames
|
||||
|
||||
df = CSV.read("data.csv", DataFrame)
|
||||
|
||||
@. df.total = (df.redstone + df.glowstone + df.sugar + df.sticks + df.bottles + df.gunpowder + df.eyes)
|
||||
@. df.total_rate = df.total / 5
|
||||
|
||||
scatter(
|
||||
df.spawners,
|
||||
df.total_rate,
|
||||
title="Total items per minute",
|
||||
label="Single drop tower",
|
||||
xlabel="Spawners",
|
||||
ylabel="Items per Minute",
|
||||
ylim=(0, :auto),
|
||||
xticks=[1, 4, 8, 12, 16, 20]
|
||||
)
|
||||
savefig("total.pdf")
|
||||
savefig("total.png")
|
||||
|
||||
@. df.per_spawner = df.total_rate / df.spawners / 5
|
||||
|
||||
scatter(
|
||||
df.spawners,
|
||||
df.per_spawner,
|
||||
title="Items per minute per spawner",
|
||||
label="Single drop tower",
|
||||
xlabel="Spawners",
|
||||
ylabel="Items per Minute",
|
||||
ylim=(0, :auto),
|
||||
xticks=[1, 4, 8, 12, 16, 20]
|
||||
)
|
||||
savefig("per_spawner.pdf")
|
||||
savefig("per_spawner.png")
|
||||
|
||||
@. df.redstone_rate_per_spawner = df.redstone / df.spawners / 5
|
||||
@. df.glowstone_rate_per_spawner = df.glowstone / df.spawners / 5
|
||||
@. df.bottles_rate_per_spawner = df.bottles / df.spawners / 5
|
||||
@. df.sugar_rate_per_spawner = df.sugar / df.spawners / 5
|
||||
@. df.gunpowder_rate_per_spawner = df.gunpowder / df.spawners / 5
|
||||
@. df.sticks_rate_per_spawner = df.sticks / df.spawners / 5
|
||||
@. df.eyes_rate_per_spawner = df.eyes / df.spawners / 5
|
||||
|
||||
scatter(
|
||||
df.spawners,
|
||||
[df.redstone_rate_per_spawner df.glowstone_rate_per_spawner df.bottles_rate_per_spawner df.sugar_rate_per_spawner df.gunpowder_rate_per_spawner df.sticks_rate_per_spawner df.eyes_rate_per_spawner],
|
||||
title="Individual items per minute per spawner",
|
||||
label=["Redstone" "Glowstone" "Bottles" "Sugar" "Gunpowder" "Sticks" "Eyes"],
|
||||
xlabel="Spawners",
|
||||
ylabel="Items per minute per spawner",
|
||||
ylim=(0, :auto),
|
||||
xticks=[1, 4, 8, 12, 16, 20]
|
||||
)
|
||||
|
||||
savefig("individual_items_rates.pdf")
|
||||
savefig("individual_items_rates.png")
|
||||
|
||||
@. df.redstone_ratio = df.redstone / df.total * 100
|
||||
@. df.glowstone_ratio = df.glowstone / df.total * 100
|
||||
@. df.bottles_ratio = df.bottles / df.total * 100
|
||||
@. df.sugar_ratio = df.sugar / df.total * 100
|
||||
@. df.gunpowder_ratio = df.gunpowder / df.total * 100
|
||||
@. df.sticks_ratio = df.sticks / df.total * 100
|
||||
@. df.eyes_ratio = df.eyes / df.total * 100
|
||||
|
||||
scatter(
|
||||
df.spawners,
|
||||
[df.redstone_ratio df.glowstone_ratio df.bottles_ratio df.sugar_ratio df.gunpowder_ratio df.sticks_ratio df.eyes_ratio],
|
||||
title="Item share",
|
||||
label=["Redstone" "Glowstone" "Bottles" "Sugar" "Gunpowder" "Sticks" "Eyes"],
|
||||
xlabel="Spawners",
|
||||
ylabel="Percentage",
|
||||
ylim=(0, :auto),
|
||||
xticks=[1, 4, 8, 12, 16, 20]
|
||||
)
|
||||
|
||||
savefig("item_ratios.pdf")
|
||||
savefig("item_ratios.png")
|
BIN
soulcage_statistics/per_spawner.pdf
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/per_spawner.pdf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
soulcage_statistics/per_spawner.png
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/per_spawner.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
soulcage_statistics/total.pdf
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/total.pdf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
soulcage_statistics/total.png
(Stored with Git LFS)
Normal file
BIN
soulcage_statistics/total.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user