diff --git a/plot.png b/plot.png new file mode 100644 index 0000000..1b18f7b Binary files /dev/null and b/plot.png differ diff --git a/plot.py b/plot.py new file mode 100644 index 0000000..bb6ff0a --- /dev/null +++ b/plot.py @@ -0,0 +1,25 @@ +# Import libraries +import csv +import matplotlib.pyplot as plt + +# Open en store the csvfile +with open('istherecorrelation.csv') as csvfile: + csvreader = csv.reader(csvfile, delimiter = ';') + next(csvreader) + years = [] + WO = [] + beer = [] + for row in csvreader: + years.append(row[0]) + WO.append(row[1]) + beer.append(row[2]) + +# Make the plot +plt.title("Beer consumption and number of WO students over the years") +plt.plot(years, WO, label = "WO") +plt.plot(years, beer, label = "beer") +plt.xlabel('Years') +plt.ylabel('Amount WO students and beer consumption') +plt.legend() +plt.savefig('plot.png', dpi = 300) +plt.show() diff --git a/solution_.md b/solution_.md new file mode 100644 index 0000000..af1e54e --- /dev/null +++ b/solution_.md @@ -0,0 +1,5 @@ +-Fantastic yeasts and where to find them: the hidden diversity of dimorphic fungal pathogens\ +-An analysis of the forces required to drag sheep over various surfaces\ +-The neurocognitive effects of alcohol on adolescents and college students + +![Plot](plot.png)