第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

從 Seaborn 調(diào)色板中選擇顏色

從 Seaborn 調(diào)色板中選擇顏色

元芳怎么了 2021-10-19 09:42:04
我有五個(gè)并排分布圖,通常使用 color 屬性更改每個(gè)分布圖的顏色。但是,現(xiàn)在我想使用 Seaborn 的 husl 調(diào)色板,但我不知道如何將調(diào)色板中的顏色應(yīng)用于每個(gè)圖表。我很確定這只是我在看的東西。# sns.set(style="white", palette="muted", color_codes=True)  sns.set(style="white", palette="husl", color_codes=True)# Set up the matplotlib figuref, axes = plt.subplots(ncols=5, figsize=(15, 4))sns.despine(left=True)# Rating of 1sns.distplot(df1[df1['rating']==1]['cost'], kde=False, color='c', ax=axes[0], axlabel="Rating of 1")# Rating of 2sns.distplot(df1[df1['rating']==2]['cost'], kde=False, color='k', ax=axes[1], axlabel='Rating of 2')# Rating of 3sns.distplot(df1[df1['rating']==3]['cost'], kde=False, color="g", ax=axes[2], axlabel='Rating of 3')# Rating of 4sns.distplot(df1[df1['rating']==4]['cost'], kde=False, color="m", ax=axes[3], axlabel='Rating of 4')# Rating of 5sns.distplot(df1[df1['rating']==5]['cost'], kde=False, color="b", ax=axes[4], axlabel='Rating of 5')plt.setp(axes, yticks=[])plt.tight_layout()
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 409 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)