Python Plotly Tutorial - Creating Well Log Plots - Plotly Graph Objects and Plotly Express

Sdílet
Vložit
  • čas přidán 26. 10. 2021
  • 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 CZcams series can now be found here:
    github.com/andymcdgeo/Andys_Y...
    REFERENCES & LIBRARIES
    Plotly Library: plotly.com/python/
    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.andymcdonald.scot/
    Be sure to sign up for my newsletter to be kept updated when I post and share new content on CZcams and Medium.
    www.getrevue.co/profile/andym...
    #petrophysics #python #geoscience #plotly
  • Věda a technologie

Komentáře • 22

  • @mohammadkeshtkar9655
    @mohammadkeshtkar9655 Před 2 lety +1

    This video is very fantastic .Thank you Andy

  • @AndyBrickell
    @AndyBrickell Před 2 lety

    very easy to understand and follow, thanks Andy

  • @heirofsam
    @heirofsam Před rokem

    This is Awesome. Thanks man!

  • @texasfossilguy
    @texasfossilguy Před 2 lety +1

    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.

    • @AndyMcDonald42
      @AndyMcDonald42  Před 2 lety

      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.

  • @josedavidbastoaguirre2099

    you are my hero!!!

  • @geraldmogi2937
    @geraldmogi2937 Před 2 měsíci

    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)?

  • @MerekRoman
    @MerekRoman Před rokem

    fantastic video would love to see how I can add data to each point i.e. formation, mud viscosity etc

  • @igorsouza2333
    @igorsouza2333 Před 2 lety

    Very nice! Is it possible to select specific parts from df to handle with others pourposes? such as ML.

    • @AndyMcDonald42
      @AndyMcDonald42  Před 2 lety +1

      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/

  • @serdarbayramov996
    @serdarbayramov996 Před 2 lety

    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.

    • @AndyMcDonald42
      @AndyMcDonald42  Před 2 lety

      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?

  • @porter3277
    @porter3277 Před rokem

    Wowwwwww

  • @ricardoperez2490
    @ricardoperez2490 Před 2 lety +1

    what is your jupyter theme sir?

    • @AndyMcDonald42
      @AndyMcDonald42  Před 2 lety +1

      Hi Ricardo, This is the default jupyter theme

    • @ricardoperez2490
      @ricardoperez2490 Před 2 lety

      @@AndyMcDonald42 Hello Mr. Interesting, I also use the default theme, but it seems you have coloured some features. Thank you for your reactivity

  • @user-yh2er3cr9j
    @user-yh2er3cr9j Před měsícem

    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.

    • @user-yh2er3cr9j
      @user-yh2er3cr9j Před měsícem

      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.