【发布时间】:2021-09-13 01:23:09
【问题描述】:
我有一个 seaborn relplot。我想显示科学计数法。目前,图像在 x 和 y 刻度上占用很大空间。我想通过将轴转换为科学计数法来最小化它。
我的代码:
sns.relplot(x='Vmpp',y='cVmpp',data=cdf)
我的解决方案和目前的输出:
#I tried a solution reported for the seaborn heatmap. It did produce a plot (I think heat plot?) but did not work.
sns.relplot(x='Vmpp',y='cVmpp',data=cdf,fmt='.2g')
目前的输出:
AttributeError: 'PathCollection' object has no property 'fmt'
【问题讨论】:
标签: python matplotlib seaborn scientific-notation