def errorplot(x, y, minconf, maxconf, **kwargs):
'''
e.g.
g = sns.FacetGrid(attr, col='run', hue='subj_pos', col_wrap=5)
g = g.map(errorplot, 'n_diff_intervening', 'errorprob',
'minconf', 'maxconf').add_legend()
'''
plt.errorbar(x, y, yerr=[y - minconf, maxconf - y], fmt='o-', **kwargs)
评论列表
文章目录