Python Plotly Tutorial - Creating Well Log Plots - Plotly Graph Objects and Plotly Express
Вставка
- Опубліковано 5 вер 2024
- Data visualization is an import part of working with data and Python has many libraries that allow you to display a wide range of charts. In this video we go over the basics of the Plotly library to display well log data on a simple, but interactive log plot.
DOWNLOAD NOTEBOOK & DATA
Data and notebooks for my entire UA-cam series can now be found here:
github.com/and...
REFERENCES & LIBRARIES
Plotly Library: plotly.com/pyt...
NLOG Database: www.nlog.nl/
If you haven't already, make sure you subscribe to the channel: / @andymcdonald42
-----
Books I Recommend:
As an Amazon Associate I earn from qualifying purchases. By buying through any of the links below I will earn commission at no extra cost to you.
PYTHON FOR DATA ANALYSIS: Data Wrangling with Pandas, NumPy, and IPython
UK: amzn.to/3HNycJ9
US: amzn.to/3DL7qPv
FUNDAMENTALS OF PETROPHYSICS
UK: amzn.to/3l1PgSf
PETROPHYSICS: Theory and Practice of Measuring Reservoir Rock and Fluid Transport Properties
UK: amzn.to/30UNWZS
US: amzn.to/3DNqBbd
WELL LOGGING FOR EARTH SCIENTISTS
UK: amzn.to/3FHsbfn
US: amzn.to/3CILAuE
GEOLOGICAL INTERPRETATION OF WELL LOGS
UK: amzn.to/3l2v2HV
US: amzn.to/30UOTkU
-----
Thanks for watching, if you want to connect you can find me at the links below:
/ andymcdonaldgeo
/ geoandymcd
/ andymcdonaldgeo
www.andymcdona...
Be sure to sign up for my newsletter to be kept updated when I post and share new content on UA-cam and Medium.
www.getrevue.c...
#petrophysics #python #geoscience #plotly
this is a good start to making something with functionality. I think showing how to plot multiple curves on one chart would have been good also to make it look like standard charts.
Just catching up with comments. Sorry for the late reply.
Yes it is possible, but it is a little bit tricky with Plotly compared to using matplotlib. It is something I am planning to look into.
This video is very fantastic .Thank you Andy
You are very welcome
very easy to understand and follow, thanks Andy
Glad to hear that :)
you are my hero!!!
Thanks 👍
Hello Andy, thanks for the great tutorial. I have a question, do you know how to create/calculate the trend log such as DT Sonic trend line (Normal Compaction Trend)? And how to filter the spike log values (despike)?
This is Awesome. Thanks man!
fantastic video would love to see how I can add data to each point i.e. formation, mud viscosity etc
Great suggestion!
Hi Andy, thanks for this video. Assuming if I have two depth columns, let's say, MD and TVD, how can I have them both shared among all columns. In your example, you showed how we can share only one column of depth, but I wonder if we can share the second y_axis (TVD) just alongside the MD and share among the columns. I attempted this by creating the secondary y_axis, but I couldn't; find a way to share it.
Hi Serdar. This is not something I have tested out yet, but I would have thought adding a secondary axis as outlined in the plotly docs would do it: plotly.com/python/multiple-axes/
Have you tried this one?
Wowwwwww
Very nice! Is it possible to select specific parts from df to handle with others pourposes? such as ML.
Thanks Igor. Do you mean selecting columns from the dataframe or rows? If so, the answer is yes. :)
I would recommend having a look at this article on how to achieve that: datacarpentry.org/python-ecology-lesson/03-index-slice-subset/
what is your jupyter theme sir?
Hi Ricardo, This is the default jupyter theme
@@AndyMcDonald42 Hello Mr. Interesting, I also use the default theme, but it seems you have coloured some features. Thank you for your reactivity
Do you know how to set the x-axis range for the log plots to show a little padding? I used fig.update_xaxes(range=[min, max]) but it sets the x-axis range to the same values for all three plots even though I did this for all three subplots separately.
No worries, I figured it out right after posting. It was standard "user error" on my part. range=[min, max] works as advertised when implemented properly.