Re: ListPlot replacing MultipleListPlot in version 6.0
- To: mathgroup at smc.vnet.net
- Subject: [mg78828] Re: ListPlot replacing MultipleListPlot in version 6.0
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Wed, 11 Jul 2007 05:57:38 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <f6vmsn$q6s$1@smc.vnet.net>
H Hogreve wrote:
> 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
The data sets must be passes as a /list/ that wrapped within open and
closed curly brackets. For instance,
(* Version 6.0 and above *)
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}]
Regards,
Jean-Marc