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: [mg38911] Re: multiple plots on same graph
  • From: Bill Rowe <listuser at earthlink.net>
  • Date: Sat, 18 Jan 2003 00:38:56 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 1/17/03 at 5:38 AM, mathma18 at hotmail.com (Narasimham G.L.) wrote:

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

If I understand what you want

Plot[Evaluate[b.{x,1}],{x,0,10}] should work.

Here, I am assuming b is a matrix of real numbers with the first column containing the slope and the second the intercept.

Perhaps a bit nicer would be

Plot[Evaluate[b.{x,1}],{x,0,10},PlotStyle->Table[Hue[n/2/Length[b]],{n,0,Length[b]-1}],Background->GrayLevel[0.7]]

This will plot each line in a different color ranging fron red to blue on a light gray background.


  • Prev by Date: Remultiple plots on same graph
  • Next by Date: RE: multiple plots on same graph
  • Previous by thread: multiple plots on same graph
  • Next by thread: RE: multiple plots on same graph