条形图和热图

1.Set up the notebook

条形图和热图

2.Load the data

条形图和热图

3.Examine the data

条形图和热图

4.Bar chart

条形图和热图

 

 条形图和热图

 

sns.barplot - This tells the notebook that we want to create a bar chart.

x=flight_data.index - This determines what to use on the horizontal axis. 

y=flight_data['NK'] - This sets the column in the data that will be used to determine the height of each bar.

5.Heatmap

条形图和热图

 

 条形图和热图

 

sns.heatmap - This tells the notebook that we want to create a heatmap.

data=flight_data - This tells the notebook to use all of the entries in flight_data to create the heatmap.

annot=True - This ensures that the values for each cell appear on the chart. (Leaving this out removes the numbers from each of the cells!)

上一篇:CNN 的一些可视化方法!


下一篇:基于mmdetection的热力图绘制