Re: RE: Simple but puzzling plotting question
- To: mathgroup at smc.vnet.net
- Subject: [mg78658] Re: [mg78618] RE: [mg78574] Simple but puzzling plotting question
- From: DrMajorBob <drmajorbob at bigfoot.com>
- Date: Fri, 6 Jul 2007 03:26:22 -0400 (EDT)
- References: <200707040943.FAA08659@smc.vnet.net> <15874398.1183625215543.JavaMail.root@m35>
- Reply-to: drmajorbob at bigfoot.com
No... the x coordinates DON'T have to be the same:
l1 = Table[{2 x, Sin[Pi x]}, {x, -Pi, Pi, Pi/8}];
l2 = Table[{x, Cos[Pi x]}, {x, -Pi, 0, Pi/12}];
l3 = Table[{3 x, Tan[Pi x]}, {x, 0, Pi, Pi/16}];
ListPlot[{l1, l2, l3}, Joined -> True]
Bobby
On Thu, 05 Jul 2007 03:11:15 -0500, David Annetts
<davidannetts at aapt.net.au> wrote:
> Hi,
>
>> I simply want to plot three currency daily exchange rates,
>> USD, GBP and EURO, from April 1, 1990 to March 31, 2006. The
>> problem is the EURO. Since it only came into existence on 01
>> January 1999, I don't have data going as far back as 1990.
>> Therefore, for the Euro column, all entries for the period
>> April 1, 1990 to December 31, 1998 are blank. Unfortunately,
>> this causes a partw error in Mathematica. Does anyone know
>> how to plot different sized datasets on the same graph?
>
> You can do this only if each of the data sets use the same x-coordinate.
>
> l1 = Table[{x, Sin[Pi x]}, {x, -Pi, Pi, Pi/8}];
> l2 = Table[{x, Cos[Pi x]}, {x, -Pi, 0, Pi/12}];
> l3 = Table[{x, Tan[Pi x]}, {x, 0, Pi, Pi/16}];
> ListPlot[{l1, l2, l3}, Joined -> True]
>
> In your case, you'd want to plot each of your currencies as they vary
> with
> date.
>
> Regards,
>
> Dave.
>
>
--
DrMajorBob at bigfoot.com
- References:
- Simple but puzzling plotting question
- From: ouadad <desmier.pe@forces.gc.ca>
- Simple but puzzling plotting question