Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixes Issue #1693 #1694

Merged
merged 1 commit into from

2 participants

@tacaswell
Owner

Explicitly trim rgbFace to length 3 so that the string formats do
not blow up.

@tacaswell tacaswell fixes Issue #1693
Explicitly trim rgbFace to length 3 so that the string formats do
not blow up.
5428a53
@WeatherGod
Collaborator

Looks good to me. Merging...

@WeatherGod WeatherGod merged commit abe4b3e into matplotlib:master
@tacaswell tacaswell deleted the tacaswell:ps_backend_fix branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 21, 2013
  1. @tacaswell

    fixes Issue #1693

    tacaswell authored
    Explicitly trim rgbFace to length 3 so that the string formats do
    not blow up.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/matplotlib/backends/backend_ps.py
View
2  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
Something went wrong with that request. Please try again.