Subsurface Syntax

Subsurface Syntax

Using Plotly Express to Create Interactive Scatter Plots

An Example of Creating Interactive Scatter Plots Using Well Log Data

Andy McDonald's avatar
Andy McDonald
Nov 21, 2021
∙ Paid

An Example of Creating Interactive Scatter Plots Using Well Log Data

Plotly Express scatter plot of well log data. Image by Author.

Scatter plots allow us to plot two variables from a dataset and compare them. From these plots, we can understand if there is a relationship between the two variables, and what the strength of that relationship is.

Within petrophysics scatter plots, are commonly known as crossplots. They are routinely used as part of the petrophysical interpretation workflow and can be used for a variety of tasks, including:

  • clay and shale endpoints identification for our clay or shale volume calculations

  • outlier detection

  • lithology identification

  • hydrocarbon identification

  • rock typing

  • regression analysis

  • and more

Within this short tutorial, we are going to see how to generate scatter plots using a popular Python plotting library called Plotly.

The Plotly Library

Plotly is a web-based toolkit that is used to generate powerful and interactive data visualisations. It is very efficient a…

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