<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # seaborn.mpl_palette > 譯者:[Modrisco](https://github.com/Modrisco) ```py seaborn.mpl_palette(name, n_colors=6) ``` 從一個 matplotlib 調色板中返回離散顏色。 請注意,這會正確處理定性的 colorbrewer 調色板,但如果您要求的顏色多于特定的定性調色板,提供的顏色將會比您預期的少。相反,使用 [`color_palette()`](seaborn.color_palette.html#seaborn.color_palette "seaborn.color_palette") 函數請求一個定性 colorbrewer 調色板將會返回預期數目的顏色,但是是循環型的。 如果您在使用 IPython notebook,您還可以通過 [`choose_colorbrewer_palette()`](seaborn.choose_colorbrewer_palette.html#seaborn.choose_colorbrewer_palette "seaborn.choose_colorbrewer_palette") 函數交互式選擇調色板。 參數:`name`:string > 調色板名字,應該是一個被命名的 matplotlib colormap。 `n_colors`:int > 調色板中離散顏色的個數。 返回值:`palette or cmap`:seaborn 調色板或者 matplotlib colormap > 類似列表的顏色對象的 RGB 元組,或者可以將連續值映射到顏色的 colormap 對象,具體取決于 `as_cmap` 參數的值。 例子 生成一個含有 8 種顏色的定性 colorbrewer 調色板: ```py >>> import seaborn as sns; sns.set() >>> sns.palplot(sns.mpl_palette("Set2", 8)) ``` ![http://seaborn.pydata.org/_images/seaborn-mpl_palette-1.png](https://img.kancloud.cn/1d/3d/1d3d38717d5f0e4e46635c4d03a55080_720x90.jpg) 生成一個連續的 colorbrewer 調色板: ```py >>> sns.palplot(sns.mpl_palette("Blues")) ``` ![http://seaborn.pydata.org/_images/seaborn-mpl_palette-2.png](https://img.kancloud.cn/10/3d/103dfa79f5722c57f53615ff09075a18_540x90.jpg) 生成一個發散調色板: ```py >>> sns.palplot(sns.mpl_palette("seismic", 8)) ``` ![http://seaborn.pydata.org/_images/seaborn-mpl_palette-3.png](https://img.kancloud.cn/69/07/690722c68ef6464b0ba1482dd74fab85_720x90.jpg) 生成一個 “dark” 順序調色板: ```py >>> sns.palplot(sns.mpl_palette("GnBu_d")) ``` ![http://seaborn.pydata.org/_images/seaborn-mpl_palette-4.png](https://img.kancloud.cn/05/5c/055cc3cfac88ba56fbc3f00548789dcf_540x90.jpg)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看