Courses /
Deep Dive into the seaborn Visualization
Rugplot
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/deep+dive/d6.png)
The rugplot
is intended to complement other plots by showing the location of individual observations in an unobtrusive way.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/rugplot+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/rugplot+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/rugplot+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/rugplot+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/rugplot+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/rugplot+gif/6.gif?w=3840&q=75)
Task
- Set the
'darkgrid'
style with the disabled'axes.grid'
and the'axes.facecolor'
equals the'aliceblue'
(color). We learned how to do that in the first part of the course. - Create the
kdeplot
using theseaborn
library. - Create the
rugplot
using theseaborn
library:
- Set the
x
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'sex'
; - Set the
height
parameter equals0.05
; - Set the
'magma'
palette
; - Set the data using the
df
; - Display the plot.
Everything was clear?
Section 2. Chapter 3
Course Content
Deep Dive into the seaborn Visualization
1. Light Start
4. Matrix Plots
Deep Dive into the seaborn Visualization
Rugplot
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/deep+dive/d6.png)
The rugplot
is intended to complement other plots by showing the location of individual observations in an unobtrusive way.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/rugplot+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/rugplot+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/rugplot+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/rugplot+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/rugplot+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/rugplot+gif/6.gif?w=3840&q=75)
Task
- Set the
'darkgrid'
style with the disabled'axes.grid'
and the'axes.facecolor'
equals the'aliceblue'
(color). We learned how to do that in the first part of the course. - Create the
kdeplot
using theseaborn
library. - Create the
rugplot
using theseaborn
library:
- Set the
x
parameter equals the'total_bill'
; - Set the
hue
parameter equals the'sex'
; - Set the
height
parameter equals0.05
; - Set the
'magma'
palette
; - Set the data using the
df
; - Display the plot.
Everything was clear?
Section 2. Chapter 3