Skip to content

Commit

Permalink
fixes Issue matplotlib#1693
Browse files Browse the repository at this point in the history
Explicitly trim rgbFace to length 3 so that the string formats do
not blow up.
  • Loading branch information
tacaswell committed Jan 21, 2013
1 parent 1efa832 commit 5428a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_ps.py
Expand Up @@ -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
Expand Down

0 comments on commit 5428a53

Please sign in to comment.