我有matplotlib 2.0.2
和seaborn 0.8
,但兩者在jupyter notebook 5.0.0中似乎都不兼容。在我有一個老版本的matplotlib
之前曾與seaborn
一起工作,那麼有人知道matplotlib 2
及以上版本是否有兼容的seaborn
版本?它不會拋出任何錯誤,但它不能使用seaborn
api應用設置,例如,下面的內容無法更改圖表的大小並應用指定的網格線。這並不在筆記本拋出錯誤,但不會應用這些設置:在jupyter筆記本上兼容matplotlib 2及以上版本的seaborn版本5.0.0
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
sns.set_style("whitegrid")
sns.set_context(rc={"figure.figsize": (17, 8)})
我不知道這是否是在我申請進口的順序?
見下面我Python和jupyter筆記本版本
matplotlib 2.0.2與seaborn 0.8完美兼容!你遇到什麼問題? – ImportanceOfBeingErnest
謝謝,讓我給問題添加更多的細節...我在jupyter筆記本5.0.0 – tsando
中遇到這個問題好吧,我已經添加了細節 - 請參閱上面,讓我知道如果你有任何想法! thx – tsando