Use matplotlib as the default imshow

This commit is contained in:
Steven Silvester
2014-11-02 07:08:43 -06:00
parent dfffd07e4a
commit 6906dbc957
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ plugin_meta_data = {}
# the following preferences.
preferred_plugins = {
# Default plugins for all types (overridden by specific types below).
'all': ['pil', 'matplotlib', 'qt', 'freeimage']
'all': ['pil', 'matplotlib', 'qt', 'freeimage'],
'imshow': ['matplotlib']
}
+1 -1
View File
@@ -114,7 +114,7 @@ def test_load_preferred_plugins_imread():
plug, func = manage_plugins.plugin_store['imread'][0]
assert func == pil_plugin.imread
plug, func = manage_plugins.plugin_store['imshow'][0]
assert func != matplotlib_plugin.imshow
assert func == matplotlib_plugin.imshow, func.__module__
if __name__ == "__main__":