From 5e906fb4eceb0631e46da1856bc73c1e05f26c99 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 30 Sep 2014 00:14:48 +0200 Subject: [PATCH] Add missing import --- skimage/draw/draw.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skimage/draw/draw.py b/skimage/draw/draw.py index 03b554c7..85b076af 100644 --- a/skimage/draw/draw.py +++ b/skimage/draw/draw.py @@ -7,6 +7,7 @@ from .._shared._geometry import polygon_clip from ._draw import line from skimage._shared.version_requirements import is_installed +from warnings import warn matplotlib_installed = is_installed('matplotlib') if not matplotlib_installed: warn('Polygon perimeter drawing requires matplotlib')