Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15207
| From | aktisitalia@googlemail.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | 3D-like graph of 2D functions |
| Date | 2013-07-20 09:55 +0000 |
| Message-ID | <ksdmpt$50l$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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}
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
3D-like graph of 2D functions aktisitalia@googlemail.com - 2013-07-20 09:55 +0000
csiph-web