Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bbfreeze/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ def recipe_matplotlib(mf):
mf.copyTree(dp, "matplotlibdata", m)

mf.import_hook("matplotlib.numerix.random_array", m)
backend_name = 'backend_' + matplotlib.get_backend().lower()
# the import hook expects a string (matplotlib in later versions has
# all rcParams, including the backend as unicode)
backend_name = 'backend_' + str(matplotlib.get_backend().lower())
print "recipe_matplotlib: using the %s matplotlib backend" % (backend_name, )
mf.import_hook('matplotlib.backends.' + backend_name, m)
return True
Expand Down