From 5428a537f71e7874dca5cfa73d87652dfd081ef7 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 21 Jan 2013 12:01:46 -0600 Subject: [PATCH] fixes Issue #1693 Explicitly trim rgbFace to length 3 so that the string formats do not blow up. --- lib/matplotlib/backends/backend_ps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_ps.py b/lib/matplotlib/backends/backend_ps.py index 5118d95e3fb4..008c9561114f 100644 --- a/lib/matplotlib/backends/backend_ps.py +++ b/lib/matplotlib/backends/backend_ps.py @@ -587,7 +587,7 @@ def draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None) if rgbFace[0]==rgbFace[1] and rgbFace[0]==rgbFace[2]: ps_color = '%1.3f setgray' % rgbFace[0] else: - ps_color = '%1.3f %1.3f %1.3f setrgbcolor' % rgbFace + ps_color = '%1.3f %1.3f %1.3f setrgbcolor' % rgbFace[:3] # construct the generic marker command: ps_cmd = ['/o {', 'gsave', 'newpath', 'translate'] # dont want the translate to be global