Skip to content

Repository containing my examples of Matplotlib generated plots, data visualizations, animations, and applications (will mostly in mathematics and applied mathematics area). The examples range from easy to difficult.

License

Notifications You must be signed in to change notification settings

anbarief/matplotlib-ex

Repository files navigation

Matplotlib-EX

This repository contains my examples of Matplotlib generated plots, data visualizations, animations, and applications (animations and applications probably around mathematics and applied mathematics area). The examples range from easy to difficult. I am the author of all the code here (unless stated otherwise). Some examples also require dataset files, which are already available in the folder except for large size dataset files. Some examples also require other external libraries such as Pandas, Numpy, and Scikit-learn. Feel free to contact me at anbarief@live.com.

(The documentation for each code is still in progress. Contributions are welcomed.)


Preview:

  • (1)

This is my submission in the WDVP 2019 (World Data Visualization Prize). The wdvp_squares_model.py generates the pdf file, wdvp_squares.pdf, without plotting the visualization (because using fig.show will get different text size in comparison to the saved plot in pdf format). See the code and the pdf file here: "Examples/World Data Visualization Prize 2019/"


  • (2)

A data visualization of Libya refugee population and oil production. Data source is https://ourworldindata.org/country/libya. The plot is generated using Matplotlib only, without any edit. (see the code in "Examples/Oil and Refugee (Libya)/")


  • (3)

Plotting the Bias-Variance trade off of a Regression Tree model to predict the data resembling x^2. (see the code in "Examples/Bias Variance Regression Tree")


  • (4)

Plotting CO2 emission per capita of G7 countries, data collected from: https://ourworldindata.org/co2-and-other-greenhouse-gas-emissions

(see the code in "Examples/CO2 Emission by G7")


  • (5)

Gundam MS-08 interactive animation. (see the code in "Examples/Gundam Interactive Animation")


  • (6)

A candle chart plot of BBRI (Bank BRI Indonesia) stock price, data collected from Yahoo finance. (see Examples/Stock Price Candle Chart)


  • (7)

A plot of 2-step sequence of 4-digit positive integer Kaprekar routine. The Kaprekar routine for 4-digit positive integer always converge to the number 6174, or Kaprekar's constant. (provided that not all digits are the same)


  • (8)

Animation of Fourier series epicycles: (see the code in "Examples/Fourier Series Epicycle")

Full video here


  • (9)

Here is an example of a simple 2048 app/game using only Matplotlib. (see the code in "Examples/2048 App")


  • (10)

Here is an example of an animation made using only Matplotlib, about the Little Big Planet character Sackboy (see the code in "Examples/Sackboy Animation"). I added a functionality such that everytime we click on the figure it will change the background color.

About

Repository containing my examples of Matplotlib generated plots, data visualizations, animations, and applications (will mostly in mathematics and applied mathematics area). The examples range from easy to difficult.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published