Re: how to plot 'carpet' of curves
- To: mathgroup at smc.vnet.net
- Subject: [mg117478] Re: how to plot 'carpet' of curves
- From: Heike Gramberg <heike.gramberg at gmail.com>
- Date: Sat, 19 Mar 2011 06:18:01 -0500 (EST)
What about tlist = Range[30]; xpoints = Range[0, 2 Pi, Pi/10]; f[t_, x_] := Sin[x] t tab = Table[{t, x, f[t, x]}, {t, tlist}, {x, xpoints}]; ListPlot3D[Flatten[tab, 1], Mesh -> {Length[tlist], 0}, AxesLabel -> {"t", "x", "f"}] Heike On 19 Mar 2011, at 10:21, Ted Sariyski wrote: > Hi, > I have a time series of curves {f1(x),f2(x),... } associated with times > {t1,t2,...}. I want to plot the curves 'cascaded': curve f1 at plane > t=t1, f2 at plane t=t2, etc. Using lists {f,x,t} I am able to use > ListPlot3D and it pretty much shows what I want but still it is not a > 'carpet' of curves. I guess I could make ListPlot3D to behave like > ParametricPlot3D but was not able to figure out how. Any help is highly > appreciated. > Thanks, > --Ted >