Skip to content

Cleo469/World-Population-Over-Time-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

World Population Over Time

This project visualises the growth of the world population between 1950 and 2010 using Matplotlib.
The chart demonstrates how simple datasets can be plotted, styled, and annotated to reveal clear population trends over time.


πŸ“Š Overview

The script produces a dashed red line plot with circular markers (marker="o") representing population data points across selected decades.
Labels, gridlines, and a title are added for readability and presentation.


πŸ’‘ Key Learning Points

  • Plotting time-series data using plt.plot()
  • Applying custom styling with markers, line colours, and line types
  • Enhancing interpretability through axis labels, gridlines, and titles
  • Understanding how plt.show() renders figures in an interactive window

🧰 Requirements

  • Python 3.x
  • Matplotlib

To install Matplotlib:

pip install matplotlib

πŸ–₯️ View the Output

A chart window will appear displaying the world population growth from 1950 to 2010, shown as a dashed red line with circular markers.


πŸ” Next Steps

You can extend this project by:

  • Replacing the hard-coded data with real UN population datasets or Kaggle CSV files
  • Using NumPy arrays for faster data handling and vectorised operations
  • Adding multiple lines to compare population growth between regions
  • Introducing subplots for side-by-side visual comparisons
  • Exporting charts to PNG or SVG formats using plt.savefig()

πŸš€ How to Run

  1. Save the script
    Save your Python file as population_plot.py.

  2. Run the script
    Open your terminal and execute:

    python population_plot.py

πŸ–₯️ View the Output

A chart window will appear displaying the world population growth from 1950 to 2010, shown as a dashed red line with circular markers.

About

Matplotlib chart showing word population over time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages