From 87998d6518f87276d3840d4733aac946b7ff061b Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 15 Jan 2015 18:57:18 -0600 Subject: [PATCH] Update docstring and create test module setup function --- skimage/io/_plugins/matplotlib_plugin.py | 2 +- skimage/io/tests/test_mpl_imshow.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/io/_plugins/matplotlib_plugin.py b/skimage/io/_plugins/matplotlib_plugin.py index d5ec47d3..2de61ecf 100644 --- a/skimage/io/_plugins/matplotlib_plugin.py +++ b/skimage/io/_plugins/matplotlib_plugin.py @@ -113,7 +113,7 @@ def imshow(im, *args, **kwargs): """Show the input image and return the current axes. By default, the image is displayed in greyscale, rather than - the matplotlib default colormap, 'jet'. + the matplotlib default colormap. Images are assumed to have standard range for their type. For example, if a floating point image has values in [0, 0.5], the diff --git a/skimage/io/tests/test_mpl_imshow.py b/skimage/io/tests/test_mpl_imshow.py index b1ff625a..aad51048 100644 --- a/skimage/io/tests/test_mpl_imshow.py +++ b/skimage/io/tests/test_mpl_imshow.py @@ -6,8 +6,8 @@ from skimage._shared._warnings import expected_warnings import matplotlib.pyplot as plt -io.use_plugin('matplotlib', 'imshow') - +def setup(): + io.reset_plugins() # test images. Note that they don't have their full range for their dtype, # but we still expect the display range to equal the full dtype range.