mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 14:31:44 +08:00
Use matplotlib as the default imshow
This commit is contained in:
@@ -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']
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user