python seaborn重置回matplotlib [英] python seaborn to reset back to the matplotlib

查看:173
本文介绍了python seaborn重置回matplotlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用seaborn版本o.4和matplotlib版本1.42 我有一个图表通过简单的绘图命令同时显示线和标记.

I'm using seaborn version o.4 and matplotlib version 1.42 I have a chart displays both line and marker through simple plot command eg.

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

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

Due to a potential bug (https://github.com/mwaskom/seaborn/issues/344), after import seaborn, same code shows line only without marker.

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

所以我的问题是:导入seaborn之后,是否可以将所有参数重置为原始参数?

So my question is: after import seaborn, Is there a way to reset all the parameters back to original?

推荐答案

是的,请致电

Yes, call seaborn.reset_orig.

这篇关于python seaborn重置回matplotlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆