File:LuChenAttractor3D.svg

Uploaded by Shiyu Ji
Upload date 2016-11-11T09:21:03Z
MIME type image/svg+xml
Dimensions 720 × 540 px
File size 19.8 MB

Summary

Description
English: Lu Chen attractor
Date
Source Own work
Author Shiyu Ji
SVG development
InfoField
 The SVG code is valid.
 This oversized plot was created with Matplotlib.
 This SVG plot draws numbers with the path text method.
Source code
InfoField

Python code

# A 3D Euler method based simulation of the Lu & Chen's system with u = 0.
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as pl
import numpy as np

t0 = 0.0
dt = 0.001
t_final = 100
T = np.arange(t0, t_final, dt)
a, b, c, u = 36, 3, 20, 0
ax = pl.figure().add_subplot(111, projection='3d')
ax.set_xlim([-40, 40])
ax.set_ylim([-30, 30])
ax.set_zlim([0, 40])
ax.set_xticks(np.arange(-40,40,10))
ax.set_yticks(np.arange(-30,30,10))
ax.set_zticks(np.arange(0,50,10))
ax.set_xlabel('X')
ax.set_ylabel('Y')
ax.set_zlabel('Z')

x, y, z = 0.1, 0.3, -0.6
for t in T:
    new_x = x + a*(y-x) * dt
    new_y = y + ((1-z)*x + c*y + u) * dt
    new_z = z + (x*y - b*z) * dt
    ax.plot([x, new_x], [y, new_y], [z, new_z], 'b-', linewidth=0.5)
    x, y, z = new_x, new_y, new_z

pl.show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

11 November 2016