Subsurface Syntax

Subsurface Syntax

Cyberpunking Your Matplotlib Figures

Taking Your Matplotlib Figures from Boring to Interesting with a Few Lines of Code

Andy McDonald's avatar
Andy McDonald
May 21, 2023
∙ Paid

Taking Your Matplotlib Figures from Boring to Interesting with a Few Lines of Code

A matplotlib figure containing multiple subplots and with the mplcyberpunk theme applied. Image by the author.

When we create infographics or posters containing data, we want to catch the reader’s attention and make it aesthetically pleasing to look at whilst telling a convincing story.

Within Python, we have numerous plotting libraries that allow us to create charts — one such library is the well-known matplotlib library. However, out of the box, the plots generated by matplotlib are often seen as boring, and getting them to something visually appealing can be time-consuming.

This is where matplotlib theming libraries come into play. One favourite library of mine is the CyberPunk theme.

GitHub - dhaitz/mplcyberpunk: "Cyberpunk style" for matplotlib plots
A Python package on top of matplotlib to create 'cyberpunk' style plots with 3 additional lines of code. After…github.com

Cyberpunk has become a widely popul…

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