Heat Maps and Interactive Plots in Python

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 56

  • @EmptyPantryEntrees
    @EmptyPantryEntrees 4 роки тому +15

    Not gonna lie, I was watching this video just for casual enjoyment, but I've come back to reference this more than a dozen times. Cannot thank you enough for providing both entertaining and informative content. Thanks!!

  • @3117master
    @3117master 6 років тому +47

    You are a rockstar. Promise me you won't forget us when you become a big famous theoretician.

    • @andrewtran6669
      @andrewtran6669 6 років тому +4

      1337master can't wait to watch Cosmos with Andrew Dotson

  • @cndler23
    @cndler23 4 роки тому +13

    this is so underrated holy shit

  • @TheDopeFighter
    @TheDopeFighter 3 роки тому +4

    This saved my dissertation thank you, was trying to plot the Coulomb blockade for a simulation and couldn't figure out how it worked

  • @shichenzhang5494
    @shichenzhang5494 Рік тому

    Thank you so much! This is such a useful video. The heat map tutorials on Google are indeed overwhelming. Yours is the best!

  • @marinecwo4
    @marinecwo4 4 роки тому +2

    Thank you Andrew! Enjoy all of your videos, but the Python vids are great because you provide ideas on how to present different types of data and/or functions. Thank you for all that you do!

  • @miggylobos1
    @miggylobos1 4 роки тому +3

    UA-cam title should be: "How Ben Afflect uses Python to plot Heat Maps". 😋 Like your videos Andrew.

  • @drandrewsanchez
    @drandrewsanchez 6 років тому +13

    Thanks! More python vids pls!

  • @trigocuantico
    @trigocuantico 6 років тому +2

    Yayyyyy, love the teacher Andrew , don't fortget us when you get to be up there in top of the world

  • @AJ-et3vf
    @AJ-et3vf 3 роки тому

    Awesome video about interactive plotting in Python. Thanks for this!

  • @pipertripp
    @pipertripp 6 років тому +2

    This was grwat. I'll have to have a rummage in ipywidgets to see what's on offer. Cheers!

  • @stephenbrock9530
    @stephenbrock9530 4 роки тому +2

    Great video! Thanks for helping me learn how to use interactive plots and heat maps :)

  • @manuelpena3988
    @manuelpena3988 5 років тому +4

    Im not sure if this works in seaborn, but in matlab and other languages (i think is pretty standard) you should pass, x,y and z to the plotter. That way you dont need to invert your y axis, and your x and y ticks would go from 1 to 10. Right now you are plotting z_ij against i and j. That makes your j axis to go in the wrong direction and also makes your x and y ticks go from 1 to 100

  • @yanaikahn295
    @yanaikahn295 Рік тому

    OMG thank you so much!!!!! i havent even started the video (ive seen one min ) and im so happy already !! amazing.
    edit after seeing the video, i would have liked to know how to do the heat graph for different data set, like a given z for some X,Y like in a measurement instead of just an f(x,y)... but thanks anyway

  • @abhishekdodda5641
    @abhishekdodda5641 2 роки тому

    Really nice. Learnt many things

  • @xxoan.1613
    @xxoan.1613 5 років тому +37

    programer:
    def function_activationTtipeError_increase(x, y):
    phisycist:
    def f(x, y):

  • @tousifraza1389
    @tousifraza1389 2 роки тому

    nice tutorial

  • @zainsiddiqi
    @zainsiddiqi 5 років тому +1

    a king

  • @markkagarura2391
    @markkagarura2391 3 роки тому

    Good content for a short video. Any recommendations for 2D/3Dplane wave geometry?

  • @pruthvijagadeesh5158
    @pruthvijagadeesh5158 3 роки тому

    hey it was a really nice video and I am working on the same project but I want to interface with the sensor by taking sensor value and giving a heat map

  • @saqlainafroz6999
    @saqlainafroz6999 3 роки тому +1

    I have a question.... Since x and y were defined from 0 to 10 im 100 steps, in the final heat plot the axis ticks should range from 0 to 10. But they aren't, rather they are ranging from 0 to 100 which is the steps we took, but that's not right.... I want to change it... How can I?

  • @sombrio4862
    @sombrio4862 4 роки тому +1

    I copied this exact code in Spyder and Jupiter Notebook and I can't get the slider :(

  • @theodor-alexandrutufa7545
    @theodor-alexandrutufa7545 4 роки тому

    Any reasons why this doesn't work in Spyder? Thank you

  • @markkagarura2391
    @markkagarura2391 3 роки тому

    Lib seaborn is good for colourmaps and colour map definitions here BUT
    Seems like seaborn doesn't do negative axes.
    All linspace is positive. Use coutourf in plt as plt.contourf(x,y,z, cmap='RdGy'). #add colour map using cmap
    plt.colourbar() #add color bar

  • @ronissilva9570
    @ronissilva9570 4 роки тому

    I was only able to view the graph by creating plt.show ().
    I did it on pydroid and IDLE. What happened in my case?

  • @xaviergonzalez5465
    @xaviergonzalez5465 2 роки тому

    This is really great! Can you include a link to the code? Also for some reason when I try this, I don't get any sliders...

  • @karensofiamunozagreda6737
    @karensofiamunozagreda6737 4 роки тому

    i have a little question
    For example, if i need to put a matrix with some data, How can i do that?
    I really need you help

  • @dimannish1
    @dimannish1 4 роки тому

    MAAAAAAAANY-MAAAAAAAAAAAANY Thanks !!!

  • @rileystewart9165
    @rileystewart9165 4 роки тому

    I'm using pycharm, how can I get this to plot? It seems to just run.

  • @cimmik
    @cimmik 5 років тому

    I have problems with numbering the axes properly. This just show the number equal to the index of the element in the array. When I draw a 2d graph, where the x-axis is time, I usually have a linear array (e.g. "t = np.linspace(0, 10, 100)"), that gives the values of the x-axis.
    Would it be possible to draw a heatmap where the axis values are named similarly?
    Ideally, I imagine something like:
    "x = np.linspace(0, 10, 100)
    y = np.linspace(0, 200)
    z = a two dimentional array with data
    sb.heatmap(x, y, z)"
    I'm a beginner, so I don't know how to word this properly and I would suggest it to Seaborn's gitHub, if I knew how to. Do you guys understand what I'm asking for?

  • @kamleshmishra1590
    @kamleshmishra1590 3 роки тому

    Can you suggest a method of plotting a 3D interactive plot this way? f(x,y,z) having a value within a range in a 3D space.

    • @johnwoods978
      @johnwoods978 3 роки тому

      ua-cam.com/video/xd2sZ8rXLZI/v-deo.html

  • @caldersheagren
    @caldersheagren 6 років тому

    Can you do a video of coding a heat eqn simulator and plotting it in this way?

  • @urasgungor9244
    @urasgungor9244 4 роки тому +4

    Pls use Shift+Enter instead of clicking run 😢, vry helpful video

  • @DriveVibes360
    @DriveVibes360 4 роки тому

    Can anyone tell.. How to draw contour plot with 3 data variable independent I means I don't have z function in x y, instead of that I have x y z all values.. Can anyone tell how to plot contour with that.?? I am just finding all exmple withz function

  • @paris_
    @paris_ 6 років тому

    How i can export this to .tiff ?

  • @yasu4941
    @yasu4941 2 роки тому

    Why there isn't super like button?
    Thank you.

  • @BruhurB682
    @BruhurB682 6 років тому

    Yes

  • @AstroRoxy
    @AstroRoxy 6 років тому

    where are the tensors vids? :/

    • @x17exeventien79
      @x17exeventien79 6 років тому

      Tensor transform law is a good place to start, I assume you did the earlier stuff in Vector Calc. You can skip some of the example vids, he goes a little overkill on them some times. ua-cam.com/video/3PvVGSQB_ik/v-deo.html

    • @AstroRoxy
      @AstroRoxy 6 років тому

      x17 Exeventien I'm confused, what exactly is he talking about in those vids?

    • @x17exeventien79
      @x17exeventien79 6 років тому

      The transformation (of a gradient in that case) from one coordinate system to another is called "general covariance", in the case of a vector that means magnitude and direction are preserved. This concept generalizes to any Rank Tensor and its what completely defines an object as being a Tensor. In the next 2 videos he introduces how contravariant objects must transform to be Tensors. You can actually derive quite a few Tensors (from GR) and operators from the fact that they must abide by that transformation law.

    • @AstroRoxy
      @AstroRoxy 6 років тому

      x17 Exeventien damn but thanks for the explanation, I'll watch the next vids in series to understand more :)

  • @duncanw9901
    @duncanw9901 6 років тому

    Wers mah tenser calc dood?!? :P

  • @amandahebert7709
    @amandahebert7709 6 років тому +2

    Yes can I have a shout out

  • @joshua7015
    @joshua7015 4 роки тому

    How do I change the colormap?

  • @deerfoot77
    @deerfoot77 3 роки тому

    1:28

  • @electromorphous
    @electromorphous 6 років тому

    Why a pink frame? Is that your favourite colour?

  • @alexbenanti5125
    @alexbenanti5125 5 років тому

    if hotter:
    make more red

  • @XanderGouws
    @XanderGouws 6 років тому +6

    The facecam is a bit too big imo, and also the frame around it is too thick.

  • @benthayermath
    @benthayermath 6 років тому

    >> disp(['MATLAB ', num2str(4), ' lyffffeee']);

  • @Ilya_Sss
    @Ilya_Sss 2 роки тому

    This video has been uploaded 4 years ago...4 years of my life wasted