Cursos /
Deep Dive into the seaborn Visualization
Heatmap
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/deep+dive/d14.png)
A heatmap
is a plot of rectangular data as a color-encoded matrix. As a parameter, it takes a 2D dataset. That dataset can be coerced into an ndarray
.
This is a great way to visualize data because it can show the relation between variables, including time. For instance, the number of flights through the years.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/6.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/7.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/8.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/9.gif?w=3840&q=75)
Tarea
- Set the
'ticks'
style with the'seagreen'
figure.facecolor
. - Create the
heatmap
using theseaborn
library:
- Add the data for the
heatmap
. You only need to input the name of the DataFrame (withoutdata = ...
); - Set the
'viridis'
cmap
parameter; - Add the
annot
parameter; - Set the
fmt
parameter equals the'0.99g'
; - Set the
linecolor
parameter equals the'plum'
; - Display the plot.
¿Todo estuvo claro?
Sección 4. Capítulo 1
Contenido del Curso
Deep Dive into the seaborn Visualization
1. Light Start
4. Matrix Plots
Deep Dive into the seaborn Visualization
Heatmap
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/deep+dive/d14.png)
A heatmap
is a plot of rectangular data as a color-encoded matrix. As a parameter, it takes a 2D dataset. That dataset can be coerced into an ndarray
.
This is a great way to visualize data because it can show the relation between variables, including time. For instance, the number of flights through the years.
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/1.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/2.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/3.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/4.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/5.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/6.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/7.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/8.gif?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/66ba0c8e-8422-413c-b7e1-74bd24c61656.upd/heatmap+gifs/9.gif?w=3840&q=75)
Tarea
- Set the
'ticks'
style with the'seagreen'
figure.facecolor
. - Create the
heatmap
using theseaborn
library:
- Add the data for the
heatmap
. You only need to input the name of the DataFrame (withoutdata = ...
); - Set the
'viridis'
cmap
parameter; - Add the
annot
parameter; - Set the
fmt
parameter equals the'0.99g'
; - Set the
linecolor
parameter equals the'plum'
; - Display the plot.
¿Todo estuvo claro?
Sección 4. Capítulo 1