This was awesome. I'm a geologist learning python and was surprised that you were doing geological plots! I was just trying to learn to change the color scale in plotly, what a pleasant surprise!
Thank you for revealing essential techniques in python, what you do is really useful. Would you share the excel sheets that you are dealing with especially of this video?
Thanks Ola. I am glad you have found the videos useful. I have just updated the GitHub repo with all of the required data: github.com/andymcdgeo/Andys_RU-vid_Notebooks
Yes they can. You need to assign the plot to a variable, and then update the figure: fig = px.scatter_3d(df_well, x='NPHI', y='RHOB', z='GR', range_x=[-0.05, 1], range_y=[3, 1.5], color='GROUP') fig.update_traces(marker=dict(size=2))
The following code will be able to change your colourbar to horiztonal: fig.update_layout(coloraxis=dict(colorbar=dict(orientation='h', y=-0.15))) Source: stackoverflow.com/questions/70695437/horizontal-colorscale-plotly-express
Hey Andy, this is really amazing and helpful and I'm definitely gonna use it. I'm wondering if there is a way to run a correlation between wells in the last 3D plot?, and create a 3D model for the wells across certain area.. Thanks so much for sharing your knowledge
Thanks for the comment. I am glad it has been helpful. I would have a look at the gempy python library. It’s mainly used for 3D modelling. Not sure what they use behind the scenes to generate their plots, but it’s looks better than plain old matplotlib.
Thanks, Andy, this would be very helpful for me. I want to ask you if, maybe, you can suggest to me a book in order to learn more things about petrophysics ... I have already read a few related to the nature of well-logs, but I'm looking some related with petrophysical calculations like how to calculate water/oil saturation or how to quantify Vshale. I am not familiar with RHOB Vs NPHI plots and the utility they have, so learning those things would be great for me. Thanks in advance, and sorry for my English (I was born and raised in Colombia).
Thanks Jose. There are a number of books out there on the subject, but I would recommend the following: The Geological Interpretation of Well Logs, by Malcolm Rider Petrophysics by Djebbar Tiab Fundamentals of Petrophysics by Shenglai Yang