使海鸟的条形图在y轴上广泛传播

时间:2017-09-21 17:02:31

标签: python-3.x seaborn

我希望条形图在图表中广泛传播,以便图表清晰可见。1

https://i.stack.imgur.com/RnRG8.png

g=sns.barplot(y="Survived", x="Age", data=t,linewidth=10)

1 个答案:

答案 0 :(得分:0)

您可以设置图形大小(figsize)以使图形更宽:

import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

data = np.random.normal(0, 1, 3)

plt.figure(figsize=(16, 6))
sns_plot = sns.boxplot(x=data)

enter image description here