Seaborn jointplot | What is a joint plot and how to code a jointplot in Python Seaborn

  Рет қаралды 12,995

Kimberly Fessel

Kimberly Fessel

Күн бұрын

Пікірлер: 71
@gauthamambethkar4483
@gauthamambethkar4483 3 жыл бұрын
Best Tutorial for Seaborn on KZbin. Keep up the great work Kimberly.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thank you very much - will do!
@comradefoodie3945
@comradefoodie3945 4 жыл бұрын
Thank you for this series, very helpful, with your help now I know how to read the plot too, lots of love!!
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
So glad you are enjoying it -- cheers!
@sobersabin
@sobersabin 4 жыл бұрын
excellent seaborn tutorial so far , i have ever seen
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
So glad you are enjoying it!
@Patiencelad
@Patiencelad Жыл бұрын
Great stuff. Thanks Kimberly!
@samruddhideshmukh5928
@samruddhideshmukh5928 3 жыл бұрын
Very helpful seaborn series!! Loving it!!!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Awesome - so glad these videos have been helpful!
@jaredagravante9523
@jaredagravante9523 2 жыл бұрын
What would I do if I only wanted to see the geysers that are 'Long' or only the geysers that are 'Short'?
@AI_For_Scientists
@AI_For_Scientists 3 жыл бұрын
Thank you, great video.
@vivekjoshi3769
@vivekjoshi3769 Жыл бұрын
This video is really comprehensive! Thanks for making it!! I have a small question. What software do you use for editing your videos? I am looking for tools to start creating video content.
@darijozivkovic7931
@darijozivkovic7931 3 жыл бұрын
Awesome educator!!!!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Thanks so much!
@andreazecchi812
@andreazecchi812 4 жыл бұрын
Top, as usually! Thanks so much, Kimberly👋
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Hi -- thank you and thanks for stopping by! 👋
@bubblebath2892
@bubblebath2892 6 ай бұрын
Great work , thnks for sharing with us
@KimberlyFessel
@KimberlyFessel 6 ай бұрын
Of course! Glad you liked it 😁
@das2222
@das2222 4 жыл бұрын
Thank you so much Kimberly... This is amazing...
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
So glad you liked it!
@netrakumarmanandhar6765
@netrakumarmanandhar6765 11 ай бұрын
This is amazing! Thanks!
@KimberlyFessel
@KimberlyFessel 11 ай бұрын
Most welcome! Glad you liked it 👍
@netrakumarmanandhar6765
@netrakumarmanandhar6765 11 ай бұрын
@@KimberlyFessel Loved your videos and learned a lot! Could you please develop videos or a complete Playlist on Plotly.
@gama3181
@gama3181 3 жыл бұрын
Wow !!!! i just found you channel and is incredible! Thanks)] :)
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Oh thank you! Welcome - and glad you are enjoying my channel!
@ecemgungor6208
@ecemgungor6208 Жыл бұрын
Hello! Is it possible to plot joint probability for three variables? I have been looking for an answer for a couple of days, however, I could not find any python library for that. Do you have any suggestion/idea?
@darijozivkovic7931
@darijozivkovic7931 3 жыл бұрын
More about Seaborn, please.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
You got it! Planning videos for the new displot and the lmplot soon. The rest of my Seaborn videos can be found here: kzbin.info/aero/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j
@johnbainbridge1931
@johnbainbridge1931 Жыл бұрын
Hi, thanks for this great lesson on joint plots. I applied your method to the data we are using but noticed that for kind = 'hist' seaborn was giving us (you and me) very different default bin sizes. I must have at least 50 while you have about 10. Why might that be and how to take control over this?
@KimberlyFessel
@KimberlyFessel Жыл бұрын
Hey there! You can past information about the bins through to marginal_kws. For example, add the property marginal_kws={'bins': 20} to make 20 bins.
@topfundus1093
@topfundus1093 3 жыл бұрын
Hello Kimberly, thank you for the excellent tutorials on Seaborn. Have followed them all on the computer. One question about this: How can I insert formula text into the graphs? For example, I would like to include the linear regression formula as text in Seaborn graphs. Thanks for your help already here. Vielen Dank und viele Grüße aus D. Kurt
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi - great question. Seaborn does not currently have an automatic way to do this, but if you know what the formula is, you can add it through matplotlib pyplot's text function. So after you create the joint plot, add: plt.text(x, y, formula) where x and y are the x and y positions where you want the text to go and formula is your formula string. You can also use TeX to write the formula using TeX commands if you'd like. I have a few other videos that may be helpful: plt.text (kzbin.info/www/bejne/hHO8q4aXiceimq8) and TeX for matplotlib (kzbin.info/www/bejne/b2WaZIaobNFrn7s). Cheers!
@fatmashaban1131
@fatmashaban1131 3 жыл бұрын
Thanks a lot, Kimberly. Is there a way to plot multiple plots (multiple x,y) in one graph using joinplot??? since hue is not working for multiple tables
@harishgunasekaran
@harishgunasekaran 4 жыл бұрын
Wow, definitely very useful than reading the page. Is it possible to extract those "clusters" points from the kde plot? For instance I just want the points (cluster) only inside the core circle shown at 4:51.
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Thanks, glad you enjoyed! KDE doesn't do clustering; it just provides an estimate for the probability density function. So I can't think of a super easy way to do this. Seaborn's KDE uses scipy's Gaussian KDE: docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gaussian_kde.html#scipy.stats.gaussian_kde You could potentially use scipy to build a KDE with your data and then maybe filter down to the group you want based on those numeric values. But like I said -- not super simple! (Though interestingly enough, these geyser data have already been clustered with KMeans. That's what the "kind" column indicates: "short" and "long" clusters. So you could just filter based on one cluster or the other for this example. 😄)
@harishgunasekaran
@harishgunasekaran 4 жыл бұрын
@@KimberlyFessel Great! Thank you, Dr. Kimberly, for your didactic support! :)
@flowing_dance
@flowing_dance 3 жыл бұрын
Amazing video!
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Glad you think so!
@DoubleMagnet
@DoubleMagnet 2 жыл бұрын
How would we make a joinplot of only the "long" data?
@tadimlikturkuler
@tadimlikturkuler 3 жыл бұрын
Thanks for videos, I have some questions. 1 - How can I get plotted values, so the joint probability density values as a data or matrix? 2 - How can I calculate probability density function for three random variables?
@lawrencetaulk7898
@lawrencetaulk7898 3 жыл бұрын
nice video, thank you teacher, great person.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Awww -- thank you! Glad to hear you liked the video. 😄
@iamritish
@iamritish 2 жыл бұрын
hoe to change the marker style for two different data?
@aishikroychaudhury8656
@aishikroychaudhury8656 3 жыл бұрын
Nice video. I have the following questions. If my hue column had many values and I want to know which colour means which value then what to do? Also, if I want to change the bin widths of the marginal histograms, then what should I do?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Great questions! Seaborn should include a legend for you by default, which will show you what each color means. If it doesn't add a legend by default, you could try adding legend=True as one of your keyword arguments within the jointplot function. And regarding the histogram bin widths, you can set these through the marginal_kws argument. For example, add sns.jointplot(..., marginal_kws={'binwidth': 10}). (Assuming you have the most recent version of Seaborn >= 0.11.0)
@pasumarthiashik1099
@pasumarthiashik1099 3 жыл бұрын
this is about , each variable is dependent on one another right.
@pasumarthiashik1099
@pasumarthiashik1099 3 жыл бұрын
on what basis histogram is ploted
@stefanietremblay2636
@stefanietremblay2636 3 жыл бұрын
Thank you so much for your videos! I have a few questions however; 1) Is it possible to change the type of the marginal plots only (I would like my main plot to be a hexbin 2d histogram and the marginal plots to be KDE)? 2) How can I add a colorbar to a joint plot? The usual "cmap" doesn't work with the JointGrid object.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Hi there - great questions! For #1, you will want to check out the JointGrid. It's much more flexible than the jointplot. And I now have a video about it here: kzbin.info/www/bejne/qmSqYWpuebyLeK8 For #2: I haven't tried adding a colorbar to a jointplot, but it looks like it accepts an argument called "cbar" for some plot types; just set cbar=True in the jointplot. You can go on to adjust it or move it from there like in this resource: stackoverflow.com/questions/60845764/colorbar-for-sns-jointplot-kde-style-on-the-side
@AliMBaba-do2sl
@AliMBaba-do2sl 3 жыл бұрын
Thank you for the very informative videos. I have just recently came across your videos while trying to display spatial data that contain anomalies in either y direction, x direction or both. Can you kindly suggest which plot I should adopt.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Most welcome! I think you're on the right track here. The jointplot would be able to show you your data's marginal distributions as well as the joint distribution, so you should be able to see anomalies in either the x- or y-directions. A bivariate KDE plot would be good to look for outliers that don't cluster with your other values, and you could plot that on the center part of the jointplot. You might also consider trying boxplots since they alert you to outlying values. But there you would need to plot the x- and y- directions separately to look for outliers.
@mprojcas1
@mprojcas1 3 жыл бұрын
Is there any other library in python that allows graphics like this? Also, I'm trying to do plt.subplots with sns.jointplot on the axes but is not working :(
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
The most common Python libraries for building graphics like these are matplotlib and seaborn. There's also pygal and altair or perhaps GeoPandas for mapping. If you'd like to add interactivity, Plotly and bokeh are nice. Regarding the subplots on the jointplot, the joinplot is based upon the JointGrid, which is already constructed of matplotlib subplots. This means the jointplot will not allow you to add additional subplots to its components. You can access the individual subplots of the jointplot by saving it's return object and then accessing the .ax_joint, .ax_marg_x, or .ax_marg_y components. So maybe you could do something fancy by updating those directly, but it would take some work!
@chandu-mu2cg
@chandu-mu2cg 3 жыл бұрын
can you please upload more videos on seaborn.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
For sure! I'm planning to do a video about the new displot soon. The rest of my Seaborn videos can be found here: kzbin.info/aero/PLtPIclEQf-3cG31dxSMZ8KTcDG7zYng1j
@thejahcoop
@thejahcoop 4 жыл бұрын
Thank you so much!!!
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Awesome -- you're welcome!
@anneborgstrom9252
@anneborgstrom9252 3 жыл бұрын
Thank you for these videos! I am a true beginner. And got confused when you end many rows with ; When do you use " ; " is it optional or does it come with Seaborn?
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Such a great question! The ; is really just there to suppress the automatic output in Jupyter Notebook; it is optional. You can learn more about the semicolon in Python in my explanation here: kzbin.info/www/bejne/eGSwZniKgK14hbs
@patnababu1257
@patnababu1257 4 жыл бұрын
mam can u please upload video on facegrid, pairgrid and lmplot. Thank you for this awesome series
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
So glad you are enjoying the series, and yes, I do plan to make videos on the FacetGrid, PairGrid, and lmplot!
@mazhariqbal29
@mazhariqbal29 3 жыл бұрын
thank you
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Welcome! Cheers 😄
@haseeb_shinwari
@haseeb_shinwari 4 жыл бұрын
We should support women in tech. Heads of to you . And i love you
@KimberlyFessel
@KimberlyFessel 4 жыл бұрын
Thanks for the support!
@thepresistence5935
@thepresistence5935 3 жыл бұрын
one request I post some words if you searched in google means you will amaze @Kimberly Fessel. smile marker for seaborn -- just copy-paste and tell what happened..
@thepresistence5935
@thepresistence5935 3 жыл бұрын
you can see the beautiful smile of our professor.
@KimberlyFessel
@KimberlyFessel 3 жыл бұрын
Seaborn is my favorite! 😄Looks like Google knows that now... 😂
@thepresistence5935
@thepresistence5935 3 жыл бұрын
@@KimberlyFessel Google knows everything !
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Seaborn Is The Easier Matplotlib
22:39
NeuralNine
Рет қаралды 182 М.
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
How I make beautiful GRAPHS and PLOTS using LaTeX
28:46
Dr. Trefor Bazett
Рет қаралды 484 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН