私はscale
が両方のパラメータを同時に変更することを理解していますが、大きなマーカー間に細い線を接続するという効果を得たいと考えています。Seaborn:factorplotで線幅とマーカを個別に変更する方法は?
また、rc{'lines.linewidth' = 1, 'lines.markersize' = 5}
までサイズを変更しようとしましたが、マーカサイズと線幅を別々に設定するのではなく、両方とも合わせてしまいます。基本的にmarkersize
はなんらかの理由で効果がありません。
編集:追加された最初の二つの数字以下問題
import seaborn as sns
sns.set(style="whitegrid")
paper_rc = {'lines.linewidth': 1, 'lines.markersize': 10}
sns.set_context("paper", rc = paper_rc)
# Load the example exercise dataset
df = sns.load_dataset("exercise")
# Draw a pointplot to show pulse as a function of three categorical factors
g = sns.factorplot(x="time", y="pulse", hue="kind", col="diet", data=df,
palette="YlGnBu_d", size=6, aspect=.75)
g.despine(left=True)
を示すプロットおよびコードは、それぞれ、markersize 1および10で作成されています。示されているように、それらは同じマーカー量を有するように見える。最後の数字はline.linewidth=10 line.markersize=1
を使用しており、線幅とマーカーの両方を拡大しています。
は、私たちにいくつかのプロットを表示することができます任意の線幅だけでなく
の希望に沿ったプロット(markersize任意で)散布図を作ることができます。 – Hun
解決方法:[link](https://github.com/mwaskom/seaborn/issues/899) – kc2uno