python seaborn重置回matplotlib

2024-04-30

我使用的是seaborn版本o.4和matplotlib版本1.42 我有一个图表通过简单的绘图命令显示线条和标记,例如。

plt.plot([1,5,3,8,4],'-bo');

由于潜在的错误(https://github.com/mwaskom/seaborn/issues/344 https://github.com/mwaskom/seaborn/issues/344),导入seaborn后,相同的代码仅显示没有标记的行。

import seaborn as sb 
plt.plot([1,5,3,8,4],'-bo');

所以我的问题是:导入seaborn后,有没有办法将所有参数重置回原始值?


是的,打电话seaborn.reset_orig http://stanford.edu/~mwaskom/software/seaborn/generated/seaborn.reset_orig.html#seaborn.reset_orig.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

python seaborn重置回matplotlib 的相关文章

随机推荐