鼠标悬停在海洋图上显示值

时间:2020-02-17 06:07:22

标签: python-3.x matplotlib plot data-visualization seaborn

我通过seaborn生成了以下情节:

enter image description here

我使用以下代码生成了上图:

line_grapgh_p_changes = df_p_change.melt('year', var_name='variables',  value_name='p_changes')
graph_p_changes = sns.factorplot(x="year", y="p_changes", hue='variables', data=line_grapgh_p_changes, height=5, aspect=2)
graph_p_changes.set(xlabel='year', ylabel='percentage change in self value across the years')

现在,我希望将鼠标光标放在上图中的任何点上时,它应该向我显示该点的实际值。我该如何实现?

0 个答案:

没有答案