MathGroup Archive 2007

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

Search the Archive

RE: ListPlot replacing MultipleListPlot in version 6.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78844] RE: [mg78796] ListPlot replacing MultipleListPlot in version 6.0
  • From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
  • Date: Wed, 11 Jul 2007 06:06:06 -0400 (EDT)
  • References: <200707101022.GAA26742@smc.vnet.net>

You just have to write {data1,data2} instead of data1,data2

  data1 = { {0, 1}, {1, 1.4}, {1.5, 2}, {1.9, 2.3}}
  data2 = { {0.2, 1}, {1.2, 1.4}, {1.4, 2}, {1.8, 2.3}}
  ListPlot[{data1,data2}]

You can obtain a nicer plot if you add the Filling option:

  ListPlot[{data1,data2},Filling->Axis]  

Regards!
Jose

-----Mensaje original-----
De: H Hogreve [mailto:hogreve at ifisr.org] 
Enviado el: Martes, 10 de Julio de 2007 05:22 a.m.
Para: mathgroup at smc.vnet.net
Asunto: [mg78796] ListPlot replacing MultipleListPlot in version 6.0

While MultipleListPlot has become obsolete in Mathematica 6.0,
unfortunately the enhanced ListPlot function does not provide
all the capabilities of MultipleListPlot. 
E.g., ploting the data sets 
  data1 = { {0, 1}, {1, 1.4}, {1.5, 2}, {1.9, 2.3}}
  data2 = { {0.2, 1}, {1.2, 1.4}, {1.4, 2}, {1.8, 2.3}}
by the command
   ListPlot[data1,data2]
does not work, whereas this was possible with MultipleListPlot.
Is there an easy way to represent both data sets in the same
plot in Mathematica 6.0  ?

Many thanks in advance,
H. Hogreve




  • Prev by Date: simplification
  • Next by Date: Re: How to factor a rational
  • Previous by thread: RE: ListPlot replacing MultipleListPlot in version 6.0
  • Next by thread: Re: ListPlot replacing MultipleListPlot in version 6.0