Subsurface Syntax

Subsurface Syntax

Adding Formation Data to a Well Log Plot

Taking well log plots one step further using Python and matplotlib

Andy McDonald's avatar
Andy McDonald
Feb 28, 2021
∙ Paid
Share

Taking well log plots one step further using Python and matplotlib

Final well log plot generated using Python’s matplotlib library and contains variable fill on the gamma ray, and a neutron-density crossover fill. Image by author.

Well log plots are a common visualization tool within geoscience and petrophysics. They allow easy visualization of data (for example, Gamma Ray, Neutron Porosity, Bulk Density, etc) that has been acquired along the length (depth) of a wellbore.

I have previously covered different aspects of making these plots in the following articles:

  • Displaying Lithology Data on a Well Log Plot Using Python

  • Displaying Logging While Drilling (LWD) Image Logs in Python

  • Enhancing Visualization of Well Logs With Plot Fills

  • Loading and Displaying Well Log Data

In this article, I will show how to combine these different methods into a single plot function that allows you to easily reuse the code with similar data.

For the examples below you can find my Jupyter Notebook and dataset on my…

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
© 2025 Andy McDonald
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture