MathGroup Archive 2011

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

Search the Archive

Re: how to plot 'carpet' of curves

  • To: mathgroup at
  • Subject: [mg117478] Re: how to plot 'carpet' of curves
  • From: Heike Gramberg <heike.gramberg at>
  • 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"}]


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

  • Prev by Date: Re: How to kill slave kernel securely?
  • Next by Date: Re: How to add window with values a,b
  • Previous by thread: Re: FindMinimum slow in evaluation
  • Next by thread: Following position change in different vectors