Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

RE : basic question about plotting 2 functions in one graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48925] RE : [mg48919] basic question about plotting 2 functions in one graph
  • From: "Florian Jaccard" <florian.jaccard at eiaj.ch>
  • Date: Thu, 24 Jun 2004 05:35:41 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

<< "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.