Python 如何为Seaborn RegPlot选择不同的色调
我使用的seaborn regplot代码如下:Python 如何为Seaborn RegPlot选择不同的色调,python,seaborn,Python,Seaborn,我使用的seaborn regplot代码如下: sns.relplot(x="NumCustomers", y="TotalSales", hue = 'StoreLabel', data=stores_month, height = 5, aspect = 2, s = 100); 要生成以下绘图: 但在谷歌搜索后,这些颜色很难区分,谷歌成功地获得了以下代码: sns.color_palette("tab10") 但什么也没发
sns.relplot(x="NumCustomers", y="TotalSales", hue = 'StoreLabel', data=stores_month, height = 5, aspect = 2, s = 100);
要生成以下绘图:
但在谷歌搜索后,这些颜色很难区分,谷歌成功地获得了以下代码:
sns.color_palette("tab10")
但什么也没发生。如何将颜色托盘更改为对比度更好的颜色?最好是tab10调色板
谢谢您的帮助:)您是否尝试了
sns.relplot(…,palete='tab10')
?效果不错。谢谢
try
sns.set_palette("Blues")
or
sns.set_palette("Dark")
sns.set_style()
1.white
2.dark
3.whitegrid
4.darkgrid
5.ticks
The set palette api must occur before the relPlot
other apis to try catDist, distPlot, catPlot
I think catPlot would work better