#12936: Adding plots should (at least attempt to) preserve legend options
------------------------------------+---------------------------------------
       Reporter:  mjo               |         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:  Andrey Novoseltsev
        Authors:  Michael Orlitzky  |     Merged in:                    
   Dependencies:                    |      Stopgaps:                    
------------------------------------+---------------------------------------

Old description:

> The `__add__()` method of plots doesn't make any attempt to preserve
> legend options. This will show the default legend:
>
> {{{
> sage: p1 = plot(x, x, -1, 1, legend_label='foo')
> sage: p2 = p1 + p1
> sage: p2
> }}}
>
> We do preserve some other information, so it should be easy to add this.

New description:

 The `__add__()` method of plots doesn't make any attempt to preserve
 legend options. This will show the default legend:

 {{{
 sage: p1 = plot(x, x, 0, 1, legend_label='foo')
 sage: p1.set_legend_options(back_color='white', shadow=True)
 sage: p2 = p1 + p1
 sage: p2._Graphics__legend_opts
 {}
 }}}

 We do preserve some other information, so it should be easy to add this.

--

Comment (by mjo):

 Replying to [comment:2 novoselt]:
 > This is a nice improvement, but the patch does not apply for me on
 Sage-5.0.rc0. Either it has to be rebased, or there are some dependencies.

 Not only that, but I forgot to set any options in the description =)

 I just built rc1 and will fix it.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12936#comment:3>
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