strange attractor plot
up vote
2
down vote
favorite
s = NDSolve[{
Derivative[1][x][t] == -y[t] - z[t],
Derivative[1][y][t] == x[t] + 0.1 y[t],
Derivative[1][z][t] == .01 + z[t] (x[t] - 14),
x[0] == z[0] == 0, y[0] == 0}, {x, y, z}, {t, 0, 400}, MaxSteps -> [Infinity]]; Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400}, PlotPoints -> 2000, PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]], ColorFunction -> (ColorData["SolarColors", #1] &)], Graphics3D[{ColorData["SolarColors"][0], Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}], RotationAction -> "Clip", Boxed
-> False, SphericalRegion -> False, Axes -> False, ImageSize -> 500]
When I do this code it only shows a picture of part of the Rossler attractor https://en.wikipedia.org/wiki/R%C3%B6ssler_attractor, even though the derivatives are correct. What's going wrong?
plotting
|
show 2 more comments
up vote
2
down vote
favorite
s = NDSolve[{
Derivative[1][x][t] == -y[t] - z[t],
Derivative[1][y][t] == x[t] + 0.1 y[t],
Derivative[1][z][t] == .01 + z[t] (x[t] - 14),
x[0] == z[0] == 0, y[0] == 0}, {x, y, z}, {t, 0, 400}, MaxSteps -> [Infinity]]; Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400}, PlotPoints -> 2000, PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]], ColorFunction -> (ColorData["SolarColors", #1] &)], Graphics3D[{ColorData["SolarColors"][0], Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}], RotationAction -> "Clip", Boxed
-> False, SphericalRegion -> False, Axes -> False, ImageSize -> 500]
When I do this code it only shows a picture of part of the Rossler attractor https://en.wikipedia.org/wiki/R%C3%B6ssler_attractor, even though the derivatives are correct. What's going wrong?
plotting
1
Add thePlotRange -> All
option toGraphics3D
.
– Rohit Namjoshi
Nov 17 at 17:29
@RohitNamjoshi still not working for me
– Forever Mozart
Nov 17 at 17:43
1
That is odd. What version of Mathematica are you running? I am on11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)
. When I add that option I see this.
– Rohit Namjoshi
Nov 17 at 17:49
@RohitNamjoshi It is the latest version. Can you send me the complete code you entered? I may be doing something wrong (I'm new to this).
– Forever Mozart
Nov 17 at 17:56
I copied exactly what you posted and addedPlotRange -> All
as the last argument toPlot
. Perhaps you have some previously bound symbol that is interfering. Try evaluatingClearAll["Global
*"]` first.
– Rohit Namjoshi
Nov 17 at 18:12
|
show 2 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
s = NDSolve[{
Derivative[1][x][t] == -y[t] - z[t],
Derivative[1][y][t] == x[t] + 0.1 y[t],
Derivative[1][z][t] == .01 + z[t] (x[t] - 14),
x[0] == z[0] == 0, y[0] == 0}, {x, y, z}, {t, 0, 400}, MaxSteps -> [Infinity]]; Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400}, PlotPoints -> 2000, PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]], ColorFunction -> (ColorData["SolarColors", #1] &)], Graphics3D[{ColorData["SolarColors"][0], Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}], RotationAction -> "Clip", Boxed
-> False, SphericalRegion -> False, Axes -> False, ImageSize -> 500]
When I do this code it only shows a picture of part of the Rossler attractor https://en.wikipedia.org/wiki/R%C3%B6ssler_attractor, even though the derivatives are correct. What's going wrong?
plotting
s = NDSolve[{
Derivative[1][x][t] == -y[t] - z[t],
Derivative[1][y][t] == x[t] + 0.1 y[t],
Derivative[1][z][t] == .01 + z[t] (x[t] - 14),
x[0] == z[0] == 0, y[0] == 0}, {x, y, z}, {t, 0, 400}, MaxSteps -> [Infinity]]; Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400}, PlotPoints -> 2000, PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]], ColorFunction -> (ColorData["SolarColors", #1] &)], Graphics3D[{ColorData["SolarColors"][0], Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}], RotationAction -> "Clip", Boxed
-> False, SphericalRegion -> False, Axes -> False, ImageSize -> 500]
When I do this code it only shows a picture of part of the Rossler attractor https://en.wikipedia.org/wiki/R%C3%B6ssler_attractor, even though the derivatives are correct. What's going wrong?
plotting
plotting
asked Nov 17 at 17:24
Forever Mozart
1153
1153
1
Add thePlotRange -> All
option toGraphics3D
.
– Rohit Namjoshi
Nov 17 at 17:29
@RohitNamjoshi still not working for me
– Forever Mozart
Nov 17 at 17:43
1
That is odd. What version of Mathematica are you running? I am on11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)
. When I add that option I see this.
– Rohit Namjoshi
Nov 17 at 17:49
@RohitNamjoshi It is the latest version. Can you send me the complete code you entered? I may be doing something wrong (I'm new to this).
– Forever Mozart
Nov 17 at 17:56
I copied exactly what you posted and addedPlotRange -> All
as the last argument toPlot
. Perhaps you have some previously bound symbol that is interfering. Try evaluatingClearAll["Global
*"]` first.
– Rohit Namjoshi
Nov 17 at 18:12
|
show 2 more comments
1
Add thePlotRange -> All
option toGraphics3D
.
– Rohit Namjoshi
Nov 17 at 17:29
@RohitNamjoshi still not working for me
– Forever Mozart
Nov 17 at 17:43
1
That is odd. What version of Mathematica are you running? I am on11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)
. When I add that option I see this.
– Rohit Namjoshi
Nov 17 at 17:49
@RohitNamjoshi It is the latest version. Can you send me the complete code you entered? I may be doing something wrong (I'm new to this).
– Forever Mozart
Nov 17 at 17:56
I copied exactly what you posted and addedPlotRange -> All
as the last argument toPlot
. Perhaps you have some previously bound symbol that is interfering. Try evaluatingClearAll["Global
*"]` first.
– Rohit Namjoshi
Nov 17 at 18:12
1
1
Add the
PlotRange -> All
option to Graphics3D
.– Rohit Namjoshi
Nov 17 at 17:29
Add the
PlotRange -> All
option to Graphics3D
.– Rohit Namjoshi
Nov 17 at 17:29
@RohitNamjoshi still not working for me
– Forever Mozart
Nov 17 at 17:43
@RohitNamjoshi still not working for me
– Forever Mozart
Nov 17 at 17:43
1
1
That is odd. What version of Mathematica are you running? I am on
11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)
. When I add that option I see this.– Rohit Namjoshi
Nov 17 at 17:49
That is odd. What version of Mathematica are you running? I am on
11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)
. When I add that option I see this.– Rohit Namjoshi
Nov 17 at 17:49
@RohitNamjoshi It is the latest version. Can you send me the complete code you entered? I may be doing something wrong (I'm new to this).
– Forever Mozart
Nov 17 at 17:56
@RohitNamjoshi It is the latest version. Can you send me the complete code you entered? I may be doing something wrong (I'm new to this).
– Forever Mozart
Nov 17 at 17:56
I copied exactly what you posted and added
PlotRange -> All
as the last argument to Plot
. Perhaps you have some previously bound symbol that is interfering. Try evaluating ClearAll["Global
*"]` first.– Rohit Namjoshi
Nov 17 at 18:12
I copied exactly what you posted and added
PlotRange -> All
as the last argument to Plot
. Perhaps you have some previously bound symbol that is interfering. Try evaluating ClearAll["Global
*"]` first.– Rohit Namjoshi
Nov 17 at 18:12
|
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
5
down vote
accepted
Add PlotRange -> All
Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400},
PlotPoints -> 2000,
PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]],
ColorFunction -> (ColorData["SolarColors", #1] &)],
Graphics3D[{ColorData["SolarColors"][0],
Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}],
RotationAction -> "Clip", Boxed -> False, SphericalRegion -> False,
Axes -> False, ImageSize -> 500, PlotRange -> All]
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
Add PlotRange -> All
Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400},
PlotPoints -> 2000,
PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]],
ColorFunction -> (ColorData["SolarColors", #1] &)],
Graphics3D[{ColorData["SolarColors"][0],
Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}],
RotationAction -> "Clip", Boxed -> False, SphericalRegion -> False,
Axes -> False, ImageSize -> 500, PlotRange -> All]
add a comment |
up vote
5
down vote
accepted
Add PlotRange -> All
Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400},
PlotPoints -> 2000,
PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]],
ColorFunction -> (ColorData["SolarColors", #1] &)],
Graphics3D[{ColorData["SolarColors"][0],
Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}],
RotationAction -> "Clip", Boxed -> False, SphericalRegion -> False,
Axes -> False, ImageSize -> 500, PlotRange -> All]
add a comment |
up vote
5
down vote
accepted
up vote
5
down vote
accepted
Add PlotRange -> All
Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400},
PlotPoints -> 2000,
PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]],
ColorFunction -> (ColorData["SolarColors", #1] &)],
Graphics3D[{ColorData["SolarColors"][0],
Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}],
RotationAction -> "Clip", Boxed -> False, SphericalRegion -> False,
Axes -> False, ImageSize -> 500, PlotRange -> All]
Add PlotRange -> All
Show[ParametricPlot3D[Evaluate[{x[t], y[t], z[t]} /. s], {t, 0, 400},
PlotPoints -> 2000,
PlotStyle -> Directive[Thick, RGBColor[0, 0, 0]],
ColorFunction -> (ColorData["SolarColors", #1] &)],
Graphics3D[{ColorData["SolarColors"][0],
Sphere[First[({x[t], y[t], z[t]} /. s) /. t -> 0], 1]}],
RotationAction -> "Clip", Boxed -> False, SphericalRegion -> False,
Axes -> False, ImageSize -> 500, PlotRange -> All]
answered Nov 17 at 18:26
Rohit Namjoshi
63319
63319
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f186198%2fstrange-attractor-plot%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Add the
PlotRange -> All
option toGraphics3D
.– Rohit Namjoshi
Nov 17 at 17:29
@RohitNamjoshi still not working for me
– Forever Mozart
Nov 17 at 17:43
1
That is odd. What version of Mathematica are you running? I am on
11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)
. When I add that option I see this.– Rohit Namjoshi
Nov 17 at 17:49
@RohitNamjoshi It is the latest version. Can you send me the complete code you entered? I may be doing something wrong (I'm new to this).
– Forever Mozart
Nov 17 at 17:56
I copied exactly what you posted and added
PlotRange -> All
as the last argument toPlot
. Perhaps you have some previously bound symbol that is interfering. Try evaluatingClearAll["Global
*"]` first.– Rohit Namjoshi
Nov 17 at 18:12