#12962: Implement multi-function plotting options in plot()
------------------------------+---------------------------------------------
   Reporter:  alauve          |             Owner:  was                   
       Type:  enhancement     |            Status:  new                   
   Priority:  minor           |         Milestone:  sage-5.1              
  Component:  user interface  |          Keywords:  plot, linestyle, color
Work issues:                  |   Report Upstream:  N/A                   
  Reviewers:                  |           Authors:  Johan S. R. Nielsen   
  Merged in:                  |      Dependencies:                        
   Stopgaps:                  |  
------------------------------+---------------------------------------------
 The code `plot([x,x^ 2],-.2,2)` is a nice shortcut for plotting both x and
 x!^ 2 on the same graph. However, if you want to choose different colors
 or linestyles for each function, then it seems you have to execute, e.g.,

 {{{
 p1=plot(x,-.2,1.2,color='blue',linestyle='dotted');
 p2=plot(x^2,-.2,1.2,color='red',linestyle='dashed');
 p1+p2
 }}}
 Here is how Maple and Mathematica handle this issue, respectively:

 `[> plot([x, x^ 2], x= -.2..1.2, color=["blue", "red"],linestyle=[dot,
 longdash]);^

 In[1]:= Plot[{x, x^2}, {x, -.2, 1.2}, PlotStyle -> {{Blue, Dotted}, {Red,
 Dashed}}]`^

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12962>
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