Permalink
Browse files

fixes Issue #1693

Explicitly trim rgbFace to length 3 so that the string formats do
not blow up.
  • Loading branch information...
1 parent 1efa832 commit 5428a537f71e7874dca5cfa73d87652dfd081ef7 @tacaswell committed Jan 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 5428a53

Please sign in to comment.