Subsurface Syntax

Subsurface Syntax

Creating Scientific Plots the Easy Way With scienceplots and matplotlib

Instantly Transform Your Matplotlib Figures With a Few Lines of Python Code

Andy McDonald's avatar
Andy McDonald
Jul 17, 2023
∙ Paid

Instantly Transform Your Matplotlib Figures With a Few Lines of Python Code

Photo by Braňo on Unsplash

When writing articles for publication in academic journals, the layout and style of the figures are expected to conform to a predefined format. This ensures consistency across all of that publication's articles and that any included figures are high quality when printed.

Python is widely used within the scientific community and provides a great way to create scientific plots. However, when we use matplotlib, one of the most popular plotting libraries within Python, the default plots are poor and need adjusting to ensure they meet the requirements.

Changing the styles of matplotlib figures can be time-consuming, which is where the scienceplots library comes in handy. With just a few lines of code, we can instantly transform the way our figure looks without spending too much time working out how to change different parts of our figures.

The scienceplots library allows users to create simple…

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