《Seaborn中文使用者指南》是一份全面介绍Python数据可视化库Seaborn的文档,旨在帮助中国用户掌握其丰富的绘图功能和使用方法。
1. 目录
2. 绘图函数Plotting functions
4 2.1 可视化的统计关系Visualizing statistical relationships
4 2.1.1 用散点图联系变量Relating variables with scatter plots
10 2.1.2 强调线条图的连续性Emphasizing continuity with line plots
21 2.1.3 显示与切面的多个关系Showing multiple relationships with facets
24 2.2 分类数据绘图Plotting with categorical data
26 2.2.1 分类散点图Categorical scatterplots
31 2.2.2 分类观测值分布Distributions of observations within categories
37 2.2.3 分类统计估计Statistical estimation within categories
41 2.2.4 对“wide-form”数据作图Plotting “wide-form” data
43 2.2.5 显示与facet的多个关系Showing multiple relationships with facets
44 2.3 可视化数据集的分布Visualizing the distribution of a dataset
45 2.3.1 绘制单变量分布Plotting univariate distributions
51 2.3.2 绘制二元分布Plotting bivariate distributions
55 2.3.3 在数据集中可视化成对关系Visualizing pairwise relationships in a dataset
57 2.4 可视化线性关系Visualizing linear relationships
58 2.4.1 函数绘制线性模型Functions to draw linear regression models
61 2.4.2 拟合不同种类的模型Fitting different kinds of models
68 2.4.3 在其他变量上的情况Conditioning on other variables
71 2.4.4 控制图表的大小和形状Controlling the size and shape of the plot
73 2.4.5 在其他上下文中绘制回归图Plotting a regression in other contexts
76 3 多图网格Multi-plot grids
76 3.1 构建结构化的多图网格Building structured multi-plot grids
77 3.2 有条件的小倍数Conditional small multiples
86 3.3 使用定制函数Using custom functions
90 3.4 绘制成对的数据关系Plotting pairwise data relationships
99 4 绘图美学Plot aesthetics
99 4.1 控制图表美学Controlling figure aesthetics
101 4.1.1 Seaborn图表风格Seaborn figure styles
104 4.1.2 删除轴上的小凸起Removing axes spines
105 4.1.3 临时设置图表样式Temporarily setting figure style
106 4.1.4 覆盖Seaborn样式的元素Overriding elements of the seaborn styles
108 4.1.5 缩放图表元素Scaling plot elements
111 4.2 选择调色板Choosing color palettes
111 4.2.1 创建颜色调色板Building color palettes
112 4.2.2 定性调色板Qualitative color palettes
116 4.2.3 连续调色板Sequential color palettes
122 4.2.4 不同颜色的调色板Diverging color palettes
124 4.2.5 设置默认调色板Setting the default color palette
125 教程中的数据集