# 安裝和入門
> 譯者:[Neolei](https://github.com/neolei)
為了安裝最新版本的 seaborn, 可以 `pip`命令:
```py
pip install seaborn
```
也可以使用 `conda` 命令安裝:
```py
conda install seaborn
```
或者,您可以使用 `pip` 直接從 github 安裝開發版本:
```py
pip install git+https://github.com/mwaskom/seaborn.git
```
另外的方法是從 [github 倉庫](https://github.com/mwaskom/seaborn) 下載,從本地安裝:
```py
pip install .
```
## 依賴
* Python 2.7 or 3.5+
### 必須的依賴
* [numpy](http://www.numpy.org/) (>= 1.9.3)
* [scipy](https://www.scipy.org/) (>= 0.14.0)
* [matplotlib](https://matplotlib.org) (>= 1.4.3)
* [pandas](https://pandas.pydata.org/) (>= 0.15.2)
### 推薦的依賴
* [statsmodels](https://www.statsmodels.org/) (>= 0.5.0)
## 測試
為了測試 seaborn,請在源代碼分發的根目錄中運行 `make test`。 這會運行單元測試套件(使用 `pytest`,但許多舊測試使用 `nose` 斷言)。 它還在函數 docstrings 中運行示例代碼,以對更廣泛和更現實的示例用法進行冒煙測試。
完整的測試集需要 Internet 連接才能下載示例數據集(如果以前沒有緩存過),但單元測試應該可以離線運行。
## 錯誤
請通過 github [issue tracker](https://github.com/mwaskom/seaborn/issues/new) 報告您遇到的任何錯誤. 在其中一個示例數據集中包含可重現的示例(通過 [`load_dataset()`](generated/seaborn.load_dataset.html#seaborn.load_dataset "seaborn.load_dataset") 訪問)將是最有幫助的。 如果不知道你正在使用的 seaborn 和 matplotlib 的版本,以及 用于繪圖的 [matplotlib backend](https://matplotlib.org/faq/usage_faq.html#what-is-a-backend),你很難調試任何問題,所以請在錯誤報告中包含這些內容。
- seaborn 0.9 中文文檔
- Seaborn 簡介
- 安裝和入門
- 可視化統計關系
- 可視化分類數據
- 可視化數據集的分布
- 線性關系可視化
- 構建結構化多圖網格
- 控制圖像的美學樣式
- 選擇調色板
- seaborn.relplot
- seaborn.scatterplot
- seaborn.lineplot
- seaborn.catplot
- seaborn.stripplot
- seaborn.swarmplot
- seaborn.boxplot
- seaborn.violinplot
- seaborn.boxenplot
- seaborn.pointplot
- seaborn.barplot
- seaborn.countplot
- seaborn.jointplot
- seaborn.pairplot
- seaborn.distplot
- seaborn.kdeplot
- seaborn.rugplot
- seaborn.lmplot
- seaborn.regplot
- seaborn.residplot
- seaborn.heatmap
- seaborn.clustermap
- seaborn.FacetGrid
- seaborn.FacetGrid.map
- seaborn.FacetGrid.map_dataframe
- seaborn.PairGrid
- seaborn.PairGrid.map
- seaborn.PairGrid.map_diag
- seaborn.PairGrid.map_offdiag
- seaborn.PairGrid.map_lower
- seaborn.PairGrid.map_upper
- seaborn.JointGrid
- seaborn.JointGrid.plot
- seaborn.JointGrid.plot_joint
- seaborn.JointGrid.plot_marginals
- seaborn.set
- seaborn.axes_style
- seaborn.set_style
- seaborn.plotting_context
- seaborn.set_context
- seaborn.set_color_codes
- seaborn.reset_defaults
- seaborn.reset_orig
- seaborn.set_palette
- seaborn.color_palette
- seaborn.husl_palette
- seaborn.hls_palette
- seaborn.cubehelix_palette
- seaborn.dark_palette
- seaborn.light_palette
- seaborn.diverging_palette
- seaborn.blend_palette
- seaborn.xkcd_palette
- seaborn.crayon_palette
- seaborn.mpl_palette
- seaborn.choose_colorbrewer_palette
- seaborn.choose_cubehelix_palette
- seaborn.choose_light_palette
- seaborn.choose_dark_palette
- seaborn.choose_diverging_palette
- seaborn.load_dataset
- seaborn.despine
- seaborn.desaturate
- seaborn.saturate
- seaborn.set_hls_values