How To Make Your Matplotlib Bar Charts Stand Out

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • 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
  • Věda a technologie

Komentáře • 12

  • @vitorribeirosa
    @vitorribeirosa Před měsícem

    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
    @ovilla81 Před 6 měsíci

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

  • @eedoan
    @eedoan Před 6 měsíci

    loved it!

  • @Sockheadrps
    @Sockheadrps Před 7 měsíci

    keep up the videos man thanks for the tutorials

  • @ici6308
    @ici6308 Před 7 měsíci

    Very nice tuto ! Five star *****

  • @gmostafaali
    @gmostafaali Před 7 měsíci

    It’s a nice tutorial and great explanation!

  • @eladiomendez8226
    @eladiomendez8226 Před 8 měsíci

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

    • @AndyMcDonald42
      @AndyMcDonald42  Před 8 měsíci

      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.

  • @petroali6412
    @petroali6412 Před 8 měsíci

    wellcome back sir