# Script Name: db_size_growth.py
# Description: Script to show graphical representation of Oracle DB Growth
# Graph Type: Line groph
# Usage: python db_size_growth.py
# Author: Adityanath Dewoolkar
# Version: 1

# importing required modules
import matplotlib.pyplot as plt

# variable declaration
x = []
y = []
z = []

# code

for line in open('db_growth.txt', 'r'):
    lines = [i for i in line.split()]
    x.append(lines[0])
    y.append(int(lines[1]))
    z.append(int(lines[2]))

plt.title("DB Growth")
plt.xlabel('Month')
plt.ylabel('DB Size')

plt.plot(x, y, color='g')
plt.plot(x, z, color='orange')

plt.show()
