mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 13:17:10 +08:00
Describe plugins using .ini files, so that we don't need to import them to know their capabilities.
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
import plugin
|
||||
|
||||
try:
|
||||
import matplotlib.pyplot as plt
|
||||
except ImportError, e:
|
||||
print e
|
||||
else:
|
||||
plugin.register('matplotlib', show=plt.imshow, save=plt.imsave)
|
||||
from matplotlib.pyplot import imshow, imsave
|
||||
except ImportError:
|
||||
print "Could not import Matplotlib."
|
||||
|
||||
Reference in New Issue
Block a user