MathGroup Archive 2007

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

Search the Archive

RE: Simple but puzzling plotting question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78618] RE: [mg78574] Simple but puzzling plotting question
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Thu, 5 Jul 2007 04:11:15 -0400 (EDT)
  • References: <200707040943.FAA08659@smc.vnet.net>

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.


  • Prev by Date: Re: Re: replacing expressions
  • Next by Date: Re: Rotable Graphics and ViewPoint
  • Previous by thread: Simple but puzzling plotting question
  • Next by thread: Re: RE: Simple but puzzling plotting question