我希望能够通过Seaborn生成的箱线图获取特定值(例如中位数、四分位数)。例如,在下面的箱线图中(来源:链接),是否有任何方法可以获取媒体和四分位数,而不是手动估计?
import numpy as np
import seaborn as sns
sns.set(style="ticks", palette="muted", color_codes=True)
# Load the example planets dataset
planets = sns.load_dataset("planets")
# Plot the orbital period with horizontal boxes
ax = sns.boxplot(x="distance", y="method", data=planets,
whis=np.inf, color="c")