#!/usr/bin/python3
import matplotlib
matplotlib.use('Agg') #Non interactive backend
import matplotlib.pyplot as plt
import numpy as np

def main():
    #x=np.random.rand(50)
    x=np.random.normal(0,1,1000)
    plt.hist(x,bins=30,edgecolor='black')
    plt.title('histogram Plot')
    plt.xlabel('Value')
    plt.ylabel('Freq')
    plt.savefig('fig3.png',dpi=300,transparent=True)

if __name__=="__main__":
    main()
