3
我試圖創建自己的matplotlib樣式表,但是Python不檢測它們。更糟糕的是:當我移動五個默認樣式表(ggplot.mplstyle)中的一個時,Python不斷報告它是可用的。當添加/刪除.mplstyle文件時,matplotlib樣式庫不會更新
我試圖重新加載整個模塊,但無濟於事:
import matplotlib
reload(matplotlib)
from matplotlib import style as style
plt = matplotlib.pyplot
print plt.style.available
只是不斷返回
[u'dark_background', u'bmh', u'grayscale', u'ggplot', u'fivethirtyeight']
我如何可以強制這些樣式的「刷新」?
P.s.我不是Python專家。
看起來像'plt.style.reload_library()'會做的伎倆 – tacaswell 2014-09-29 20:06:34
@tcaswell感謝您的建議,但它似乎沒有什麼區別。不會拋出任何錯誤消息,順便說一句。 – RubenGeert 2014-09-29 20:13:46
你可以報告這是一個錯誤嗎? – tacaswell 2014-09-29 23:23:15