Subsurface Syntax

Subsurface Syntax

7 Steps to Help You Make Your Matplotlib Bar Charts Beautiful

Easily Improve the Quality of Your Matplotlib Data Visualisations With a Few Simple Tweaks

Andy McDonald's avatar
Andy McDonald
Mar 27, 2023
∙ Paid

Easily Improve the Quality of Your Matplotlib Data Visualisations With a Few Simple Tweaks

Matplotlib horizontal bar chart after changing several features to make it more visually appealing. Image by the author.
Matplotlib horizontal bar chart after changing several features to make it more visually appealing. Image by the author.

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. However, with perseverance, exploration, and a few extra lines of Python code, we can generate distinctive, aesthetically pleasing and informative figures.

If you want to see what matplotlib is capable of with a little bit of extra work, then you may be interested in checking out my previous article:

3 Unique Charts You Wouldn’t Think Were Created with Matplotlib
Utilising Python’s …

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture