#4342: [with patch; positive review] Add legends to plot.py
-------------------------+--------------------------------------------------
 Reporter:  anakha       |        Owner:  anakha  
     Type:  enhancement  |       Status:  assigned
 Priority:  major        |    Milestone:  sage-3.4
Component:  graphics     |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by wdj):

  * summary:  [with patch; needs review] Add legends to plot.py => [with
              patch; positive review] Add legends to plot.py

Comment:

 Again, I am having trouble running tests, so I can't say if they all pass.
 The examples seem fine (if somewhat too few). Still, which this very
 clever bit of programmming, this block of commands

 {{{
 sage: P1 = plot(exp(x), 0, 2, legend_label='$y=e^x$')
 sage: P2 = plot(sin(x), 0, 2, rgbcolor=(1,0,0),legend_label='$y=\sin(x)$')
 sage: show(P1+P2)
 }}}

 produces a beautiful plot of two curves, one red and the other blue, and
 the legend labels are collected into a distinctive light grey box with the
 correct labels.

 Wonderful!!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4342#comment:12>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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