Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15207 > unrolled thread
| Started by | aktisitalia@googlemail.com |
|---|---|
| First post | 2013-07-20 09:55 +0000 |
| Last post | 2013-07-20 09:55 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
3D-like graph of 2D functions aktisitalia@googlemail.com - 2013-07-20 09:55 +0000
| From | aktisitalia@googlemail.com |
|---|---|
| Date | 2013-07-20 09:55 +0000 |
| Subject | 3D-like graph of 2D functions |
| Message-ID | <ksdmpt$50l$1@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}
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web