MathGroup Archive 2003

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

Search the Archive

RE: multiple plots on same graph

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38907] RE: [mg38885] multiple plots on same graph
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sat, 18 Jan 2003 00:38:34 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Narasimham,

Here is one method...

Needs["Graphics`Colors`"]

Here is an array of slopes and y-axis intercepts.

mc = {{0, 0.2, 0.4, 0.6}, {-0.1, 0.1, 0.2, 0.3}};

The following statement generates a table of functions for the lines.

functions = MapThread[#1 x + #2 &, mc]
{-0.1, 0.1 + 0.2*x, 0.2 + 0.4*x, 0.3 + 0.6*x}

Plot[functions // Evaluate, {x, -1, 1},
    PlotStyle -> {Red, Blue, LimeGreen, Orchid},
    Frame -> True];

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 


From: Narasimham G.L. [mailto:mathma18 at hotmail.com]
To: mathgroup at smc.vnet.net


How to get multiple plots on same x-y graph  for given x domain for
straight line y=m*x+C ? matrix (m,c) is given, each with a uniform
increment.Please indicate code lines, a cluttered output not
withstanding.



  • Prev by Date: Re: multiple plots on same graph
  • Next by Date: Re: Re: Simplification ?
  • Previous by thread: Re: multiple plots on same graph
  • Next by thread: font sizes