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

# importing required modules
import matplotlib.pyplot as plt
import pandas as pd



# variable declaration
a = []
b = []
c = []

# code
for line in open('db_growth.txt', 'r'):
    lines = [i for i in line.split()]
    a.append(lines[0])
    b.append(int(lines[1]))
    c.append(int(lines[2]))
    df = pd.DataFrame({
        'Month': a,
        'PhysicalSize': b,
        'LogicalSize': c
    })

# plotting graph
df.plot(x="Month", y=["PhysicalSize", "LogicalSize"], kind="bar")
plt.show()
