Prevent scientific notation in seaborn boxplot

后端 未结 1 1842
鱼传尺愫
鱼传尺愫 2021-01-20 04:18

I\'m using pandas version 0.17.0 , matplotlib version 1.4.3 and seaborn version 0.6.0 to create a boxplot. I want all values on the x-axis in float notation. Currently the t

相关标签:
1条回答
  • 2021-01-20 04:52

    This might be an ugly solution, but it works, so who cares

    fig, ax = plt.subplots(1, 1)
    boxplot = sns.boxplot(x="Regularisierungsparameter", y="F1", data=data.sort("Regularisierungsparameter"), ax=ax)
    labels = ['%.5f' % float(t.get_text()) for t in ax.get_xticklabels()]
    ax.set_xticklabels(labels)
    
    0 讨论(0)
提交回复
热议问题