# File: Exercise2_5.py (Chapter 2, Exercise 5)
# Purpose: plots average drug use for each type of drug in the DrugData file
# Autor: Emily G. Allen

# Import pylab
from pylab import *

# Import Drug Data
from DrugData import *

# Import function that calculates averages
from Exercise2_4 import *

def plotAverage():
    averages = calcAverages() # calculate the averages
    plot(averages, 'rs')     # plot the averages as a scatter

    # label the plots
    xlabel('Drug')
    ylabel('Average Use')
    title('Average Use of Each Drug')
    
    show() # show the graph
