This article was automatically translated from the original Turkish version.
Matplotlib is one of the oldest and most widely used data visualization libraries for the Python programming language. It is used to create plots, line graphs, bar charts, pie charts, histograms, scatter plots, and more.
Matplotlib was initially developed in 2003 by John D. Hunter. Hunter sought to create a plotting tool similar to MATLAB to visualize scientific data, and thus wrote this library. Over time, it gained widespread adoption in academic circles and became one of the foundational pillars of Python’s scientific ecosystem.
After John Hunter’s death in 2012, the developer community took over the project and continued its development.
Matplotlib has become the standard for data visualization in Python within the fields of data science, artificial intelligence, and engineering. It is frequently preferred in academic publications and scientific reporting.
Matplotlib is one of the foundational building blocks of Python’s visualization landscape. Its customizable nature, broad range of applications, and seamless integration with other libraries make it indispensable for both beginners and experts.
History
Key Features
Applications
Installation
Basic Usage
1) Line Plot Examples
Different Colors and Styles
Date-Based Plot
2) Bar Chart Examples
Horizontal Bar Chart
Grouped Bar Chart
3) Histogram Examples
Normal Distribution Histogram
Histogram with Density Curve
4) Pie Chart Examples
Exploded Pie Chart
5) Scatter Plots
Colored and Sized Points
6) 3D Plot Example
7) Subplots and Multiple Plots
2x2 Subplot
8) Real-Time Plotting with Matplotlib (Live Updates)
9) Matplotlib + Pandas Integration
Matplotlib’s Role in the Python Ecosystem