Python Plotly Tutorial - Scatter Plot

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии • 30

  • @texasfossilguy
    @texasfossilguy 2 года назад +1

    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!

  • @mohammadkeshtkar9655
    @mohammadkeshtkar9655 3 года назад

    This is one of the most useful videos you have made because scatter plots plays an important role in earth science.Thank you Andy

  • @dtechkrew
    @dtechkrew 2 года назад

    It was a really, really great tutorial. Learned alot. thanks, Andy..! Stay Blessed

    • @AndyMcDonald42
      @AndyMcDonald42  2 года назад +1

      Thanks. Glad you found it useful. 🙂

  • @erramuspe1
    @erramuspe1 11 месяцев назад

    Thanks for information,The library is amazing!

  • @david-johnadams3315
    @david-johnadams3315 3 года назад

    This is so cool.
    Thank you for sharing and educating.

  • @barbozajh
    @barbozajh 3 года назад +1

    Can be changed the point size on the 3D plots?

    • @AndyMcDonald42
      @AndyMcDonald42  3 года назад +1

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

  • @vitorribeirosa
    @vitorribeirosa 3 года назад

    Thank you very much for sharing this content. It has been very useful to my work.
    Cheers!!!

  • @lordtopkek2995
    @lordtopkek2995 3 года назад +1

    Thank you good Sir, for sharing your overwhelming knowledge of datavisualization with your fellow plebeians!

    • @AndyMcDonald42
      @AndyMcDonald42  3 года назад

      Thanks. I am happy to share and glad to hear that it is useful 👍

  • @arturodebarrio
    @arturodebarrio 2 года назад

    Hi Andy! Thanks for sharing this video. It helps me a lot. Could you explain how to change the colour of each group? Thank you!

  • @uchiha_sasuke_48
    @uchiha_sasuke_48 2 года назад +1

    How to give orientation of color bar to horizontal?

    • @AndyMcDonald42
      @AndyMcDonald42  2 года назад +1

      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

    • @uchiha_sasuke_48
      @uchiha_sasuke_48 2 года назад

      @@AndyMcDonald42 I've already resolved it. But anyway, tq for responding

    • @uchiha_sasuke_48
      @uchiha_sasuke_48 2 года назад

      Got the solution from Stack Overflow

  • @olaal-najjar7391
    @olaal-najjar7391 3 года назад +1

    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?

    • @AndyMcDonald42
      @AndyMcDonald42  3 года назад +1

      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_RUclips_Notebooks

    • @olaal-najjar7391
      @olaal-najjar7391 3 года назад

      @@AndyMcDonald42 thanks a million 😊

  • @abdelmoneimmohammad6168
    @abdelmoneimmohammad6168 2 года назад

    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

    • @AndyMcDonald42
      @AndyMcDonald42  2 года назад +1

      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.

    • @AndyMcDonald42
      @AndyMcDonald42  2 года назад +1

      Here’s their website
      www.gempy.org

    • @abdelmoneimmohammad6168
      @abdelmoneimmohammad6168 2 года назад

      This is really helpful, thanks so much, Andy! Wish you all the best and waiting for more geoscience videos

  • @josedavidbastoaguirre2099
    @josedavidbastoaguirre2099 3 года назад

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

    • @AndyMcDonald42
      @AndyMcDonald42  3 года назад

      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

  • @UserName-hl7ud
    @UserName-hl7ud 2 года назад

    Hey andy nice content man. How can scatter plot on top of a choropleth for data set ranging 700k to 1million records. Please help!! Require urgently

    • @AndyMcDonald42
      @AndyMcDonald42  2 года назад

      Thanks for the comment. Unfortunately I have not done much with Choropleth maps. Sorry I can't be more help on this one.