Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

3D-like graph of 2D functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131405] 3D-like graph of 2D functions
  • From: aktisitalia at googlemail.com
  • Date: Sat, 20 Jul 2013 05:58:13 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

I would like to have a 3D-like plot of several functions, such as in http://i.stack.imgur.com/Gp3fH.gif, but with the x-y axes corresponding to the data I insert

An example of the code I have is

par = {0, 100, 200}; (*parameter that should go in the Y value*)
varX = {0, 1, 2, 3, 7, 10}; (*axis X values*)
func = Table[0, {Length[par]}]; (*initialisation function*)
For[i = 1, i < Length[par] + 1, i++,
  func[[i]] = varX^2 + par[[i]];
  ];

ListPlot[Transpose[{varX, func[[1]] }], Joined -> True] (*in this way I have the first component of the function with real X values*)
ListPlot[func, Joined -> True] (*here I have all the functions, but plotted in 2D, missing the X and Y values*)

Is there a way to do it? I tried with ListPlot3D, but probably I have to go through the creation of a 3D matrix {varX,par,func} 



  • Prev by Date: Re: constructing a continuous region from 2D data using
  • Next by Date: Drawing in a Poission Distribution
  • Previous by thread: Re: Mathematica Kernel Stops Functioning
  • Next by thread: Drawing in a Poission Distribution