how we can obtain a 2D projection of 3D plot. I would to have a plot like this :
PS: the plot is a publication paper.
Asked
Active
Viewed 1,082 times
4
Radia B
- 41
- 3
-
1possible duplicate: How to project 3d image in the planes xy, xz, yz?, See if this answer gives what you need. – kglr Oct 15 '21 at 19:52
-
What is the formula for the blue line? – yarchik Oct 15 '21 at 19:58
-
@yarchik In LateX form: E(t)=\sin ^{2}(\pi t)\left[\sin (t) \mathbf{e}{\mathbf{x}}+\cos (t) \mathbf{e}{\mathbf{y}}\right] – Radia B Oct 15 '21 at 20:12
-
thank you so much – Radia B Oct 15 '21 at 20:47
-
It's hard to read Latex, please, add MA code to your post. – yarchik Oct 15 '21 at 21:03
1 Answers
6
ClearAll[f, functions]
f[u_] := {u, (1 - u) Sin[10 u], (1 - u) Cos[10 u]/3};
plotrange = 4;
padding = .5;
Construct three additional functions replacing $i^{th}$ coordinate of f[u] with a constant corresponding to the plane of projection:
functions[u_] := Prepend[f[u]][
MapThread[ReplacePart[f[u], # -> #2 (plotrange + padding)] &,
{{1, 2, 3}, {-1, 1, -1}}]]
ParametricPlot3D[Evaluate@functions[u], {u, -Pi, Pi},
PlotStyle -> Thick,
BoxRatios -> {1, 1, 1},
PlotPoints -> 100,
PlotRange -> plotrange,
PlotRangePadding -> padding,
Boxed -> {Back, Bottom, Left}]
See also:
kglr
- 394,356
- 18
- 477
- 896
