MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE : basic question about plotting 2 functions in one graph


<< "Graphics`Colors`"; 
<< "Graphics`Legend`"; 
Plot[{3*n, 2.6*n}, {n, 0, 100000}, 
  PlotStyle -> {Green, Red}, PlotLegend -> 
   {"3n", "2.6n"}, LegendPosition -> {1, 0}, 
  ImageSize -> 500]

Greetings

F.Jaccard
-----Message d'origine-----
De : Ron Haus [mailto:ronhaus at arcor.de] 
Envoyé : mercredi, 23. juin 2004 08:51
À : mathgroup at smc.vnet.net
Objet : [mg48919] basic question about plotting 2 functions in one graph

Hi,
if I write something like this
Plot[{3n, 2.6n}, {n, 0, 100000}]

how can I distinguish them? How can I plot one of them green and one of them
red (for example)? How can I write the function on the graph?

THX





  • Prev by Date: Re: basic question about plotting 2 functions in one graph
  • Next by Date: Re: basic question about plotting 2 functions in one graph
  • Previous by thread: Re: Named Patterns in Switch
  • Next by thread: Seeking a compact expression in a model.