From d992066caad8ca7515cb927218fb91db33a515b8 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Mon, 25 Apr 2011 22:55:29 -0400 Subject: [PATCH] Fixed warning message relating to interpolation='none' setting --- lib/matplotlib/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py index f2d9984a3429..e46b949425bb 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -620,7 +620,7 @@ def _check_unsampled_image(self, renderer): if renderer.option_scale_image(): return True else: - warnings.warn("The backend (%s) does not support interpolation='none'. The image will be interpolated with 'nearest` mode." % (str(type(renderer)))) + warnings.warn("The backend (%s) does not support interpolation='none'. The image will be interpolated with 'nearest` mode." % renderer.__class__) return False