Course Content
Deep Dive into the seaborn Visualization
Deep Dive into the seaborn Visualization
Catplot
Note
catplot
=FacetGrid
+stripplot
/swarmplot
/boxplot
/violinplot
/barplot
/pointplot
The catplot
function provides a new framework giving access to several types of plots that show a relationship between a numerical variable and one or more categorical variables, like boxplot
, stripplot
and so on.
Note
Scroll down to see the full plot when you cope with the task!
Task
- Set the
'white'
style with the'aliceblue'
axes.facecolor
. - Create the
catplot
using theseaborn
library:
- Set the
x
parameter equals the'species'
; - Set the
y
parameter equals the'body_mass_g'
; - Set the
hue
parameter equals the'sex'
; - Set the
row
parameter equals the'island'
; - Set the
'viridis'
palette
; - Set the
alpha
parameter equals0.6
; - Disable the
legend_out
.
Task
- Set the
'white'
style with the'aliceblue'
axes.facecolor
. - Create the
catplot
using theseaborn
library:
- Set the
x
parameter equals the'species'
; - Set the
y
parameter equals the'body_mass_g'
; - Set the
hue
parameter equals the'sex'
; - Set the
row
parameter equals the'island'
; - Set the
'viridis'
palette
; - Set the
alpha
parameter equals0.6
; - Disable the
legend_out
.
Everything was clear?
Catplot
Note
catplot
=FacetGrid
+stripplot
/swarmplot
/boxplot
/violinplot
/barplot
/pointplot
The catplot
function provides a new framework giving access to several types of plots that show a relationship between a numerical variable and one or more categorical variables, like boxplot
, stripplot
and so on.
Note
Scroll down to see the full plot when you cope with the task!
Task
- Set the
'white'
style with the'aliceblue'
axes.facecolor
. - Create the
catplot
using theseaborn
library:
- Set the
x
parameter equals the'species'
; - Set the
y
parameter equals the'body_mass_g'
; - Set the
hue
parameter equals the'sex'
; - Set the
row
parameter equals the'island'
; - Set the
'viridis'
palette
; - Set the
alpha
parameter equals0.6
; - Disable the
legend_out
.
Task
- Set the
'white'
style with the'aliceblue'
axes.facecolor
. - Create the
catplot
using theseaborn
library:
- Set the
x
parameter equals the'species'
; - Set the
y
parameter equals the'body_mass_g'
; - Set the
hue
parameter equals the'sex'
; - Set the
row
parameter equals the'island'
; - Set the
'viridis'
palette
; - Set the
alpha
parameter equals0.6
; - Disable the
legend_out
.
Everything was clear?
Catplot
Note
catplot
=FacetGrid
+stripplot
/swarmplot
/boxplot
/violinplot
/barplot
/pointplot
The catplot
function provides a new framework giving access to several types of plots that show a relationship between a numerical variable and one or more categorical variables, like boxplot
, stripplot
and so on.
Note
Scroll down to see the full plot when you cope with the task!
Task
- Set the
'white'
style with the'aliceblue'
axes.facecolor
. - Create the
catplot
using theseaborn
library:
- Set the
x
parameter equals the'species'
; - Set the
y
parameter equals the'body_mass_g'
; - Set the
hue
parameter equals the'sex'
; - Set the
row
parameter equals the'island'
; - Set the
'viridis'
palette
; - Set the
alpha
parameter equals0.6
; - Disable the
legend_out
.
Task
- Set the
'white'
style with the'aliceblue'
axes.facecolor
. - Create the
catplot
using theseaborn
library:
- Set the
x
parameter equals the'species'
; - Set the
y
parameter equals the'body_mass_g'
; - Set the
hue
parameter equals the'sex'
; - Set the
row
parameter equals the'island'
; - Set the
'viridis'
palette
; - Set the
alpha
parameter equals0.6
; - Disable the
legend_out
.
Everything was clear?
Note
catplot
=FacetGrid
+stripplot
/swarmplot
/boxplot
/violinplot
/barplot
/pointplot
The catplot
function provides a new framework giving access to several types of plots that show a relationship between a numerical variable and one or more categorical variables, like boxplot
, stripplot
and so on.
Note
Scroll down to see the full plot when you cope with the task!
Task
- Set the
'white'
style with the'aliceblue'
axes.facecolor
. - Create the
catplot
using theseaborn
library:
- Set the
x
parameter equals the'species'
; - Set the
y
parameter equals the'body_mass_g'
; - Set the
hue
parameter equals the'sex'
; - Set the
row
parameter equals the'island'
; - Set the
'viridis'
palette
; - Set the
alpha
parameter equals0.6
; - Disable the
legend_out
.