#12852: dashed arrows have arrowheads that are not solid
---------------------------------------------+------------------------------
       Reporter:  jason                      |         Owner:  jason, was
           Type:  enhancement                |        Status:  needs_work
       Priority:  major                      |     Milestone:  sage-5.1  
      Component:  graphics                   |    Resolution:            
       Keywords:                             |   Work issues:            
Report Upstream:  N/A                        |     Reviewers:            
        Authors:  Jae-Joon Lee, Jason Grout  |     Merged in:            
   Dependencies:                             |      Stopgaps:            
---------------------------------------------+------------------------------
Changes (by mjo):

 * cc: mjo (added)


Comment:

 Kind of lame, but hoping to make up for it with clever points:

 {{{
 sage: dashed = arrow((0,0), (1,1), linestyle='dashed')
 sage: dashed.show(filename='dashed.eps')
 }}}

 The EPS format calls `[6 6] 0 setdash` to enable the dashes, and `[] 0
 setdash` to disable them. Before the patch, we enable the dashes, stroke
 two objects, and then disable them:

 {{{
 gantu ~ $ cat dashed.eps | tr '\n' ' ' | grep -P -q
 'setdash.*stroke.*stroke.*setdash'
 gantu ~ $ echo $?
 0
 }}}

 After the patch, we enable the dashes, stroke one object, and then disable
 the dashes:

 {{{
 gantu ~ $ cat dashed-patched.eps | tr '\n' ' ' | grep -P -q
 'setdash.*stroke.*stroke.*setdash'
 gantu ~ $ echo $?
 1
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12852#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to