Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

## matplotlib-users

 [Matplotlib-users] parametric plot of two sets of discrete data From: Aitor Gonzalez - 2008-01-03 04:25:36 Attachments: Message as HTML ```Hi, I have some two sets of data with their x- and y-coordinates, (x1, y1) and (x2, y2). I want to plot these curves as a parametric plot: ######### from numpy import * from pylab import * t = arange (0.0 , pi/2 , 0.05) x1= cos(t) y1 = -sin(t) x2 = -1+2/pi*t y2 = -2/pi*t # plotted as a normal plot plot( t , x1 , t , y1 ,t , x2, t , y2) legend(('x1','y1','x2','y2')) show() ######### I have read that this is done with the countour function, but I cannot figure out how. Can somebody help me. Also I have tried to search for information in this forum using the search tool at the top of the page, but I could not get any hit even for obvious queries such as "output". Is there something wrong? Thank you in advance Aitor ```
 Re: [Matplotlib-users] parametric plot of two sets of discrete data From: John Hunter - 2008-01-16 21:21:41 ```On Jan 2, 2008 10:25 PM, Aitor Gonzalez wrote: > Hi, > > I have some two sets of data with their x- and y-coordinates, (x1, y1) and > (x2, y2). I want to plot these curves as a parametric plot: > ######### > from numpy import * > from pylab import * > > t = arange ( 0.0 , pi/2 , 0.05) > x1= cos(t) > y1 = -sin(t) > x2 = -1+2/pi*t > y2 = -2/pi*t I think you want something like plot(x1, y1, 'g-', x2, y2, 'r-') ```