Re: Joining points of ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg117295] Re: Joining points of ListPlot
- From: Ray Koopman <koopman at sfu.ca>
- Date: Mon, 14 Mar 2011 05:59:59 -0500 (EST)
- References: <ili6sd$ko0$1@smc.vnet.net>
On Mar 13, 3:39 am, Antonio Mezzacapo <ant.mezzac... at gmail.com> wrote: > Hi, > here's my problem: > > I have an array of data depicting two crossing functions > (let's say like Sin[x] and Cos[x]). How can I arrange them > and make a joined points plot, that joins only points > belonging to the same function? > I remember you that the points of the two crossing > functions are on the same array and they are non-ordered. > > Thank you > > Antonio Mezzacapo Do you have values for each function on the same set of x-values, something like RandomSample@Flatten[{{#,f@#},{#,g@#}}& /@ x, 1] ? Do you know the general form of each function, so that if the two data sets were separate you would only have to fit parameters?