<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # seaborn.light_palette > 譯者:[Modrisco](https://github.com/Modrisco) ```py seaborn.light_palette(color, n_colors=6, reverse=False, as_cmap=False, input='rgb') ``` 制作一個混合淺色和 `color` 模式的順序調色板。 這種調色板適用于數據集的范圍從相對低值(不感興趣)到相對高值(很感興趣)時。 可以通過多種方式指定 `color` 參數,包括用于在 matplotlib 中定義顏色的所有選項,以及由 seborn 處理的其他幾個顏色空間。也可以使用 XKCD color survey 中的顏色名字數據庫。 如果您在使用 IPython notebook,您還可以通過 [`choose_light_palette()`](seaborn.choose_light_palette.html#seaborn.choose_light_palette "seaborn.choose_light_palette") 函數交互式選擇調色板。 參數:`color`:高值的基色 > 十六進制、`input` 中的元組或者顏色名字。 `n_colors`:int, 可選 > 調色板中的顏色數。 `reverse`:bool, 可選 > 如果為 True 值,則反轉混合的方向。 `as_cmap`:bool, 可選 > 如果為 True 值,則返回 matplotlib colormap 而不是列表。 `input`:{‘rgb’, ‘hls’, ‘husl’, xkcd’} > 用于解釋輸入顏色的顏色空間。前三個選項適用于元組輸入,后者適用于字符串輸入。 返回值:`palette or cmap`:seaborn color palette or matplotlib colormap > 類似列表的顏色對象的 RGB 元組,或者可以將連續值映射到顏色的 colormap 對象,具體取決于 as_cmap 參數的值。 另外 創建具有暗低值的連續調色板。創建有兩種顏色的發散調色板。 例子 從一個 HTML 顏色生成一個調色板: ```py >>> import seaborn as sns; sns.set() >>> sns.palplot(sns.light_palette("purple")) ``` ![http://seaborn.pydata.org/_images/seaborn-light_palette-1.png](https://img.kancloud.cn/16/0c/160c32b9c1e1df1c1eaaba35926c03d7_540x90.jpg) 生成亮度降低的調色板: ```py >>> sns.palplot(sns.light_palette("seagreen", reverse=True)) ``` ![http://seaborn.pydata.org/_images/seaborn-light_palette-2.png](https://img.kancloud.cn/ee/13/ee136d5475f6ca4fea4170b1831698e9_540x90.jpg) 從 HUSL 空間種子生成選項板: ```py >>> sns.palplot(sns.light_palette((260, 75, 60), input="husl")) ``` ![http://seaborn.pydata.org/_images/seaborn-light_palette-3.png](https://img.kancloud.cn/a1/de/a1de08fcfdb66ed9a385f5385185b7f5_540x90.jpg) 生成一個 colormap 對象: ```py >>> from numpy import arange >>> x = arange(25).reshape(5, 5) >>> cmap = sns.light_palette("#2ecc71", as_cmap=True) >>> ax = sns.heatmap(x, cmap=cmap) ``` ![http://seaborn.pydata.org/_images/seaborn-light_palette-4.png](https://img.kancloud.cn/5c/ac/5cacc741875924323fe344fb84319dc3_576x432.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>

                              哎呀哎呀视频在线观看