Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

#!

/usr/bin/env python
# coding: utf-8

# In[4]:

#Vatsal Patel (186383)

#CISC 504-90- O-2020/Late Summer - Principles of Programming Langu

#Instructor: Muazzam Ali

# Final Project

import matplotlib.pyplot as plt


import pandas as pd

plt.subplots_adjust(wspace=1.2, hspace=1.2)
data = pd.read_csv("D:\\LakeCounty_Health.csv")
# first subplot
#Plot graph for ZIP column vs Colorectal Cancer

#subplot divides the main plot into multiple plots so that many graphs can be
plotted together

plt.subplot(3,3,1)

#plot the desired graph with ZIP as x and B as y variable

plt.plot(data['ZIP'], data['Colorectal'])

#setting the title of a plot

plt.title("ZIP Vs Colorectal Cancer")

#labeling the y axis of a plot

plt.ylabel("Colorectal Cancer")

#making grid lines in a plot

plt.grid()

# second subplot

#Plot graph for ZIP column vs Lung_Bronc

plt.subplot(3,3,2)

#plot the desired graph with ZIP as x and B as y variable

plt.plot(data['ZIP'],data['Lung_Bronc'])

#setting the title of a plot

plt.title("ZIP Vs Lung_Bronc")
#labeling the y axis of a plot

plt.ylabel("Lung_Bronc")

#making grid lines in a plot

plt.grid()

#third subplot
#Plot graph for ZIP column vs Breast_Can

plt.subplot(3,3,3)

#plot the desired graph with ZIP as x and B as y variable

plt.plot(data['ZIP'],data['Breast_Can'])

#setting the title of a plot

plt.title("ZIP Vs Breast_Can")

#labeling the y axis of a plot

plt.ylabel("Breast_Can")

#making grid lines in a plot

plt.grid()

#fourth subplot
#Plot graph for ZIP column vs Prostate_C

plt.subplot(3,3,4)

#plot the desired graph with ZIP as x and B as y variable

plt.plot(data['ZIP'],data['Prostate_C'])

#setting the title of a plot

plt.title("ZIP Vs Prostate_C")

#labeling the y axis of a plot

plt.ylabel("Prostate_C")

#making grid lines in a plot

plt.grid()

#fifth subplot
#Plot graph for ZIP column vs Urinary_Sy

plt.subplot(3,3,5)

#plot the desired graph with ZIP as x and B as y variable

plt.plot(data['ZIP'],data['Urinary_Sy'])
#setting the title of a plot

plt.title("ZIP Vs Urinary_Sy")

#labeling the y axis of a plot

plt.ylabel("Urinary_Sy")

#making grid lines in a plot

plt.grid()

#sixth subplot
#Plot graph for ZIP column vs All_Cancer

plt.subplot(3,3,6)

#plot the desired graph with ZIP as x and B as y variable

plt.plot(data['ZIP'],data['All_Cancer'])

#setting the title of a plot

plt.title("ZIP Vs All_Cancer")

#labeling the y axis of a plot

plt.ylabel("All_Cancer")

#making grid lines in a plot

plt.grid()

# In[ ]:

# In[ ]:

You might also like