- Download the following packages using pip
- Note: This program was designed speicially for the NY state population csv (I have included it in the repository). For other data you can hard code in the cities or change the csv reader to read the specific rows you need. You will need a .csv file for whatever cities you are trying to plot.
- Use csv module to open csv file containing NY State city populations.
- Enter city names as input (example: Plattsburgh city, New York)
- Use matplotlib to plot the population data of the 3 cities entered.
- A legend is displayed to show the cities and their corresponding line color and shape.
- Make sure csv file is in same directory.
Enter the name of a city: Angola village, New York
Enter the name of another city: East Hampton village, New York
Enter a third city: Oswego city, New York
- Once the third city is entered, the graph will be displayed. Image displaying the map is in the repository.