@@ -582,18 +582,29 @@ def draw_markers(self, gc, marker_path, marker_trans, path, trans, rgbFace=None)
582582
583583 # construct the generic marker command:
584584 ps_cmd = ['/o {' , 'gsave' , 'newpath' , 'translate' ] # dont want the translate to be global
585- jint = gc .get_joinstyle ()
586- ps_cmd .append ('%d setlinejoin' % jint )
587- cint = gc .get_capstyle ()
588- ps_cmd .append ('%d setlinecap' % cint )
585+
586+ lw = gc .get_linewidth ()
587+ stroke = lw != 0.0
588+ if stroke :
589+ ps_cmd .append ('%.1f setlinewidth' % lw )
590+ jint = gc .get_joinstyle ()
591+ ps_cmd .append ('%d setlinejoin' % jint )
592+ cint = gc .get_capstyle ()
593+ ps_cmd .append ('%d setlinecap' % cint )
589594
590595 ps_cmd .append (self ._convert_path (marker_pa
98E7
th , marker_trans ,
591596 simplify = False ))
592597
593598 if rgbFace :
594- ps_cmd .extend (['gsave' , ps_color , 'fill' , 'grestore' ])
599+ if stroke :
600+ ps_cmd .append ('gsave' )
601+ ps_cmd .extend ([ps_color , 'fill' ])
602+ if stroke :
603+ ps_cmd .append ('grestore' )
595604
596- ps_cmd .extend (['stroke' , 'grestore' , '} bind def' ])
605+ if stroke :
606+ ps_cmd .append ('stroke' )
607+ ps_cmd .extend (['grestore' , '} bind def' ])
597608
598609 for vertices , code in path .iter_segments (trans , simplify = False ):
599610 if len (vertices ):
0 commit comments