47 lines
1.0 KiB
Python
Executable File
47 lines
1.0 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import matplotlib.pyplot as plt
|
|
import numpy as np
|
|
|
|
class Ore:
|
|
def __init__(self, name, low, high):
|
|
self.name = name
|
|
self.low = low
|
|
self.high = high
|
|
|
|
oregen = (
|
|
Ore('gold', 0, 32),
|
|
Ore('iron', 0, 64),
|
|
Ore('coal', 0, 128),
|
|
Ore('lapis', 0, 32),
|
|
Ore('diamond', 0, 16),
|
|
Ore('redstone', 0, 16),
|
|
Ore('emerald', 0, 16),
|
|
Ore('certuz', 24, 48),
|
|
Ore('apatite', 54, 96),
|
|
Ore('uranium', 16, 42),
|
|
Ore('ruby', 16, 42),
|
|
Ore('sapphire', 16, 42),
|
|
Ore('bauxite', 48, 72),
|
|
Ore('tungsten', 0, 10),
|
|
Ore('peridot', 16, 42),
|
|
Ore('copper', 40, 75),
|
|
Ore('tin', 20, 55),
|
|
Ore('silver', 5, 30),
|
|
Ore('lead', 5, 30),
|
|
Ore('aluminum', 48, 72),
|
|
Ore('nickel', 5, 20),
|
|
Ore('platinum', 7, 75),
|
|
Ore('iridium', 8, 75),
|
|
)
|
|
|
|
oregen = sorted(oregen, key=lambda x: x.low, reverse=True)
|
|
|
|
plt.boxplot([(x.high, x.low) for x in oregen], labels=[x.name.title() for x in oregen], vert=False)
|
|
plt.title('FTB Continuum Oregen')
|
|
plt.xlabel('Y-level')
|
|
plt.xticks()
|
|
|
|
plt.savefig('oregen.svg', format='svg')
|