@@ -81,11 +81,10 @@ Optional parameters can be passed to the ``solve()`` method to control the behav
81
81
Visualizing solutions
82
82
---------------------
83
83
84
- OTP has built-in plotting capabilities for visualizing the computed
84
+ `` OTP `` has built-in plotting capabilities for visualizing the computed
85
85
solution. The ``plot() `` method can be used to plot the solution
86
86
trajectory. The ``plotPhaseSpace() `` method creates a phase-space
87
- diagram by visualizing all spatial-components of the state vector. OTP
88
- also supports animations for the computed solution.
87
+ diagram by visualizing all spatial-components of the state vector.
89
88
90
89
.. code :: matlab
91
90
@@ -95,15 +94,22 @@ also supports animations for the computed solution.
95
94
% Plot the Phase-Space solution
96
95
problem.plotPhaseSpace(sol);
97
96
97
+ .. image :: ../images/Lorenz-solution-plot.png
98
+ :width: 200
99
+ .. image :: ../images/Lorenz-Phase-plot.png
100
+ :width: 200
101
+
102
+ ``OTP `` also supports animations for the computed solution:
103
+
104
+ .. code :: matlab
105
+
98
106
% Create a movie of the solution
99
107
problem.movie(sol);
100
108
101
109
.. video :: ../_static/Lorenz-Original-Canonical.webm
102
110
:loop:
103
111
:width: 200
104
112
105
-
106
-
107
113
Changing the parameters
108
114
------------------------
109
115
You can change the parameters of the problem by modifying the
@@ -137,7 +143,7 @@ following code:
137
143
odeset('Jacobian', problem.RHS.Jacobian));
138
144
This is particularly useful when you want to compare the performance of different solvers on the same problem.
139
145
140
- Next Steps
146
+ Next steps
141
147
------------------------
142
148
Explore different problems available in OTP by browsing the Problems Gallery in the sidebar. You can define your custom
143
149
problems by creating a new class that inherits from the ``otp.Problem `` class.
0 commit comments