Зміст курсу
Deep Dive into the seaborn Visualization
Deep Dive into the seaborn Visualization
1. Light Start
4. Matrix Plots
PairGrid
PairGrid
is a subplot grid for plotting pairwise relationships in a dataset.
This object maps each variable in a dataset onto a column and row in a grid of multiple axes. Different axes-level plotting functions can be used to draw bivariate plots in the upper and lower triangles, and then the marginal distribution of each variable can be shown on the diagonal.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/6.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style with the'lightpink'
figure.facecolor
. - Create a
PairGrid
variable usingg
:
- Set the data for the
g
; - Set the
hue
parameter equals the'species'
; - Set the
'rocket_r'
palette.
Set diagonale plots using the .map_diag()
function:
- Create a
histplot
using theseaborn
; - Add the
kde
parameter.
Set non-diagonale plots using the .map_offdiag()
function:
- Create a
scatterplot
using theseaborn
; - Set the
linewidth
parameter equals0.9
; - Set the
'purple'
edgecolor
parameter.
Завдання
- Set the
'ticks'
style with the'lightpink'
figure.facecolor
. - Create a
PairGrid
variable usingg
:
- Set the data for the
g
; - Set the
hue
parameter equals the'species'
; - Set the
'rocket_r'
palette.
Set diagonale plots using the .map_diag()
function:
- Create a
histplot
using theseaborn
; - Add the
kde
parameter.
Set non-diagonale plots using the .map_offdiag()
function:
- Create a
scatterplot
using theseaborn
; - Set the
linewidth
parameter equals0.9
; - Set the
'purple'
edgecolor
parameter.
Все було зрозуміло?
PairGrid
PairGrid
is a subplot grid for plotting pairwise relationships in a dataset.
This object maps each variable in a dataset onto a column and row in a grid of multiple axes. Different axes-level plotting functions can be used to draw bivariate plots in the upper and lower triangles, and then the marginal distribution of each variable can be shown on the diagonal.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/6.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style with the'lightpink'
figure.facecolor
. - Create a
PairGrid
variable usingg
:
- Set the data for the
g
; - Set the
hue
parameter equals the'species'
; - Set the
'rocket_r'
palette.
Set diagonale plots using the .map_diag()
function:
- Create a
histplot
using theseaborn
; - Add the
kde
parameter.
Set non-diagonale plots using the .map_offdiag()
function:
- Create a
scatterplot
using theseaborn
; - Set the
linewidth
parameter equals0.9
; - Set the
'purple'
edgecolor
parameter.
Завдання
- Set the
'ticks'
style with the'lightpink'
figure.facecolor
. - Create a
PairGrid
variable usingg
:
- Set the data for the
g
; - Set the
hue
parameter equals the'species'
; - Set the
'rocket_r'
palette.
Set diagonale plots using the .map_diag()
function:
- Create a
histplot
using theseaborn
; - Add the
kde
parameter.
Set non-diagonale plots using the .map_offdiag()
function:
- Create a
scatterplot
using theseaborn
; - Set the
linewidth
parameter equals0.9
; - Set the
'purple'
edgecolor
parameter.
Все було зрозуміло?
PairGrid
is a subplot grid for plotting pairwise relationships in a dataset.
This object maps each variable in a dataset onto a column and row in a grid of multiple axes. Different axes-level plotting functions can be used to draw bivariate plots in the upper and lower triangles, and then the marginal distribution of each variable can be shown on the diagonal.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/6.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style with the'lightpink'
figure.facecolor
. - Create a
PairGrid
variable usingg
:
- Set the data for the
g
; - Set the
hue
parameter equals the'species'
; - Set the
'rocket_r'
palette.
Set diagonale plots using the .map_diag()
function:
- Create a
histplot
using theseaborn
; - Add the
kde
parameter.
Set non-diagonale plots using the .map_offdiag()
function:
- Create a
scatterplot
using theseaborn
; - Set the
linewidth
parameter equals0.9
; - Set the
'purple'
edgecolor
parameter.
PairGrid
PairGrid
is a subplot grid for plotting pairwise relationships in a dataset.
This object maps each variable in a dataset onto a column and row in a grid of multiple axes. Different axes-level plotting functions can be used to draw bivariate plots in the upper and lower triangles, and then the marginal distribution of each variable can be shown on the diagonal.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/pairgrid+gif/6.gif?w=3840&q=75)
Завдання
- Set the
'ticks'
style with the'lightpink'
figure.facecolor
. - Create a
PairGrid
variable usingg
:
- Set the data for the
g
; - Set the
hue
parameter equals the'species'
; - Set the
'rocket_r'
palette.
Set diagonale plots using the .map_diag()
function:
- Create a
histplot
using theseaborn
; - Add the
kde
parameter.
Set non-diagonale plots using the .map_offdiag()
function:
- Create a
scatterplot
using theseaborn
; - Set the
linewidth
parameter equals0.9
; - Set the
'purple'
edgecolor
parameter.