![](/img/trans.png)
[英]Adding bar labels shrinks dodged bars in seaborn.objects
我正在嘗試使用seaborn.objects將文本標簽添加到分組/閃避欄 plot 的頂部。 這是一個基本的閃避條 plot:import seaborn.objects as so import pandas as pd dat = pd.DataFrame({'group':['a','a', ...
[英]Adding bar labels shrinks dodged bars in seaborn.objects
我正在嘗試使用seaborn.objects將文本標簽添加到分組/閃避欄 plot 的頂部。 這是一個基本的閃避條 plot:import seaborn.objects as so import pandas as pd dat = pd.DataFrame({'group':['a','a', ...
[英]how to use seaborn objects scale with two visualisations with same kwargs?
我正在嘗試在條形圖上創建帶有標簽的條形圖 plot。 標簽的 Position 和標簽的顏色取決於 dataframe 的列。此外,我想按列對條進行着色。 我的數據: 我試圖創建以下 plot: 但是此代碼引發以下錯誤: 因為兩個可視化都有屬性顏色。 我可以同時使用顏色條或文本,但不能同時使用。 ...
[英]Python seaborn lineplot missing values on the plot
我正在嘗試使用 seaborn 創建線圖,對於我所擁有的點的特定情況,plot 在繪制的線上缺少一些點,導致 plot 不正確。代碼片段如下所示 得到的plot如下圖 知道為什么會這樣嗎? 我嘗試使用 seaborn 版本 0.11.2 和 0.12.2 ...
[英]How can I use .on(fig) without distorting the legend position in seaborn.objects?
我正在 seaborn.objects 中創建一個plot 。 這個plot有傳說,我也想改一下大小。 這可以使用.theme()方法來完成,它會影響matplotlib rcParams :import matplotlib.pyplot as plt import seaborn.object ...
[英]How can I rotate axis labels in a faceted seaborn.objects plot?
我在最新版本的seaborn中使用優秀的seaborn.objects模塊。 我想制作一個 plot: 帶有旋轉的 x 軸標簽有刻面在seaborn.objects中不直接支持旋轉 x 軸標簽(並且在制作圖形后像plt.xticks()這樣的標准東西不起作用),但文檔建議使用.on()方法進行。 ...
[英]How to create line + ribbon plot with seaborn.objects?
我想創建一個類似於使用geom_line + geom_ribbon使用 ggplot2創建的線 + 帶狀圖: 為此,我想使用新的seaborn.objects接口,但即使Plot函數確實接受ymin和ymax ,我也不知道如何有效地使用它們。 我正在嘗試.add(so.Line()).add( ...
[英]The seaborn styles shipped by Matplotlib are deprecated since 3.6
Matplotlib 提供的 seaborn styles 自 3.6 起已棄用,因為它們不再對應於 seaborn 提供的 styles。但是,它們仍將作為“seaborn-v0_8-<style>”提供。 或者,直接使用 seaborn API 代替。 我試過這個: 但它已被棄用, ...
[英]How to rotate the xticks in a Seaborn.objects V0.12x plot
碰巧,有沒有辦法旋轉下圖中的 xticks(只是為了使其更具可讀性)? 通常的sns.xticks()在新的 Seaborn.objects 開發中不起作用(這太棒了!) 此外,我的 x 軸是分類的,這個警告:使用分類單位到 plot 一個字符串列表,這些字符串都可以解析為浮點數或日期。 如果這 ...