Skip to content
This repository

fixes Issue #1693 #1694

Merged
merged 1 commit into from about 1 year ago

2 participants

Thomas A Caswell Benjamin Root
Thomas A Caswell
Collaborator

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

Thomas A Caswell fixes Issue #1693
Explicitly trim rgbFace to length 3 so that the string formats do
not blow up.
5428a53
Benjamin Root
Collaborator

Looks good to me. Merging...

Benjamin Root WeatherGod merged commit abe4b3e into from January 23, 2013
Benjamin Root WeatherGod closed this January 23, 2013
Thomas A Caswell tacaswell deleted the branch January 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 21, 2013
Thomas A Caswell fixes Issue #1693
Explicitly trim rgbFace to length 3 so that the string formats do
not blow up.
5428a53
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/matplotlib/backends/backend_ps.py
2  lib/matplotlib/backends/backend_ps.py
@@ -587,7 +587,7 @@ def draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None)
587 587
             if rgbFace[0]==rgbFace[1] and rgbFace[0]==rgbFace[2]:
588 588
                 ps_color = '%1.3f setgray' % rgbFace[0]
589 589
             else:
590  
-                ps_color = '%1.3f %1.3f %1.3f setrgbcolor' % rgbFace
  590
+                ps_color = '%1.3f %1.3f %1.3f setrgbcolor' % rgbFace[:3]
591 591
 
592 592
         # construct the generic marker command:
593 593
         ps_cmd = ['/o {', 'gsave', 'newpath', 'translate'] # dont want the translate to be global
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.