MathGroup Archive 2004

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

Search the Archive

Re: basic question about plotting 2 functions in one graph


Hi,

Plot[{3n, 2.6n}, {n, 0, 100000}, 
  PlotStyle -> {RGBColor[1, 0, 0], RGBColor[0, 1, 0]},
  Epilog -> {{RGBColor[1, 0, 0], 
        Text["Some curve", {20000, 250000}, {-1, 0}]},
      {RGBColor[0, 1, 0], 
        Text["Some other curve", {20000, 200000}, {-1, 0}]}}
  ]


Regards
  Jens

Ron Haus wrote:
> 
> 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: Overlay graphs
  • Previous by thread: Re: basic question about plotting 2 functions in one graph
  • Next by thread: Re: basic question about plotting 2 functions in one graph