Subsurface Syntax

Subsurface Syntax

Enhance Your Plotly Express Scatter Plot With Marginal Plots

Display Extra Information on your Plotly Express Scatter Plots

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

Display Extra Information on your Plotly Express Scatter Plots

Plotly Express Scatter Plot of well log data illustrating marginal plots on both axes. Image by the author.

Scatter plots are a commonly used data visualisation tool within data science. They allow us to plot two numerical variables, as points, on a two dimensional graph. From these plots, we can understand if there is a relationship between the two variables, and what the strength of that relationship is.

Within this short tutorial, we are going to use the excellent Plotly library to visualise a data set, and we are going to see how to add marginal plots to the edges of the y, and x-axis to enhance our visualisation and understanding of the data.

I have covered creating scatter plots in plotly and matplotlib, which you can find below:

  • Creating Scatter Plots of Well Log Data Using matplotlib in Python

  • Using Plotly Express to Create Interactive Scatter Plots

Part of this tutorial is covered in my Plotly Scatter Plots video

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