mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-05 01:59:55 +08:00
MAINT: matplotlib is in requierements.txt
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
import numpy as np
|
||||
|
||||
try:
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.colors as mcolors
|
||||
LABELS_CMAP = mcolors.ListedColormap(['white', 'red', 'dodgerblue', 'gold',
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.colors as mcolors
|
||||
LABELS_CMAP = mcolors.ListedColormap(['white', 'red', 'dodgerblue', 'gold',
|
||||
'greenyellow', 'blueviolet'])
|
||||
except ImportError:
|
||||
print("Could not import matplotlib -- skimage.viewer not available.")
|
||||
|
||||
from skimage.viewer.canvastools.base import CanvasToolBase
|
||||
|
||||
@@ -192,7 +188,6 @@ class CenteredWindow(object):
|
||||
|
||||
if __name__ == '__main__':
|
||||
np.testing.rundocs()
|
||||
import matplotlib.pyplot as plt
|
||||
from skimage import data
|
||||
|
||||
image = data.camera()
|
||||
|
||||
Reference in New Issue
Block a user