How To Make Your Matplotlib Bar Charts Stand Out

Ғылым және технология

Bar charts are a commonly used data visualisation tool where categorical features are represented by bars of varying lengths/heights. The height or length of the bar corresponds to the value being represented for that category.
Bar charts can easily be created in matplotlib. However, the matplotlib library is often regarded as a library that produces unexciting charts and can be challenging to work with. With perseverance, exploration, and a few extra lines of Python code, we can generate distinctive, aesthetically pleasing and informative figures.
In this video, I show you how you can transform a basic matplotlib bar chart into something that is much more informative and much nicer to look at.
⭐️ If you haven't already, make sure you subscribe to the channel: / @andymcdonald42
▼ --- SUPPORT THE CHANNEL --- ▼
☕️ BUY ME A COFFEE: www.buymeacoffee.com/andymcdo...
▼ --- DATASET --- ▼
The dataset used for this tutorial is a subset of a training dataset used as part of a Machine Learning competition run by Xeek and FORCE 2020.
Bormann, Peter, Aursand, Peder, Dilib, Fahad, Manral, Surrender, & Dischington, Peter. (2020). FORCE 2020 Well well log and lithofacies dataset for machine learning competition [Data set]. Zenodo. doi.org/10.5281/zenodo.4351156
This dataset is licensed under a Creative Commons Attribution 4.0 International license.
▼ --- RECOMMENDED BOOKS --- ▼
As an Amazon Associate, I earn from qualifying purchases. By buying through any of the links below, I will earn a commission at no extra cost to you.
PYTHON FOR DATA ANALYSIS: Data Wrangling with Pandas, NumPy, and IPython
UK: amzn.to/3HNycJ9
US: amzn.to/3DL7qPv
FUNDAMENTALS OF PETROPHYSICS
UK: amzn.to/3l1PgSf
PETROPHYSICS: Theory and Practice of Measuring Reservoir Rock and Fluid Transport Properties
UK: amzn.to/30UNWZS
US: amzn.to/3DNqBbd
WELL LOGGING FOR EARTH SCIENTISTS
UK: amzn.to/3FHsbfn
US: amzn.to/3CILAuE
GEOLOGICAL INTERPRETATION OF WELL LOGS
UK: amzn.to/3l2v2HV
US: amzn.to/30UOTkU
▼ --- SOCIAL CHANNELS --- ▼
Thanks for watching. If you want to connect, you can find me at the links below:
/ andymcdonaldgeo
/ andymcdonaldgeo
www.andymcdonald.scot/
#datascience #petrophysics #python #matplotlib #eda #dataanalytics

Пікірлер: 12

  • @vitorribeirosa
    @vitorribeirosaАй бұрын

    Thanks, Andy!!! Even knowing bar plotting pretty well, I learn at least one or two great trick in your videos. I appreciate your videos and recommend them to colleagues very often. Cheers!!!

  • @ovilla81
    @ovilla816 ай бұрын

    Many thanks! I was able to compile some data and send it to my boss weekly using these skills.

  • @eedoan
    @eedoan5 ай бұрын

    loved it!

  • @Sockheadrps
    @Sockheadrps7 ай бұрын

    keep up the videos man thanks for the tutorials

  • @AndyMcDonald42

    @AndyMcDonald42

    7 ай бұрын

    Thanks, will do!

  • @gmostafaali
    @gmostafaali7 ай бұрын

    It’s a nice tutorial and great explanation!

  • @ici6308
    @ici63087 ай бұрын

    Very nice tuto ! Five star *****

  • @AndyMcDonald42

    @AndyMcDonald42

    7 ай бұрын

    Thanks 👍

  • @petroali6412
    @petroali64128 ай бұрын

    wellcome back sir

  • @AndyMcDonald42

    @AndyMcDonald42

    8 ай бұрын

    Thanks

  • @eladiomendez8226
    @eladiomendez82268 ай бұрын

    Awesome video. It would help if you made the font size larger for the code to make following easier.

  • @AndyMcDonald42

    @AndyMcDonald42

    8 ай бұрын

    Thanks. I was trying to balance the text size with the figure size without too much scrolling. I will see what I can do going forward 🙂. I will also be adding the notebooks and code to a new GitHub repository shortly which should help.

Келесі