File:Feigenbaum tree with bias.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Feigenbaum_tree_with_bias.gif (400 × 400 pixels, file size: 255 KB, MIME type: image/gif, looped, 100 frames, 10 s)
File information
Structured data
Captions
Summary
[edit]DescriptionFeigenbaum tree with bias.gif | Logistic Map with Bias & Feigenbaum tree. For higher resolution: click here |
Date | |
Source | Own work |
Author | Damodar Rajbhandari |
Source code in Python 3.x (in Jupyter Notebook)
[edit]
# Author: Damodar Rajbhandari (2023)
%reset -f
%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rc
from matplotlib.animation import FuncAnimation
from IPython.display import clear_output
from IPython.display import Image
plt.rcParams.update({
"text.usetex": True,
"font.family": "Computer Modern Roman",
"font.size": 24,
})
n_dots = 1_000_000 # total number of dots
k = np.linspace(0.0, 4.0, n_dots)
iterations = 100
fig = plt.figure(figsize=(20, 15))
ax = plt.axes()
ax.set_xlim(0.0, 4.0)
ax.set_ylim(0.0, 1.0)
rc('animation', html='html5')
w = 1.5 # \omega bias setting to 1.5
def animate(i):
plt.cla()
ax.set_title(r"Feigenbaum Tree with bias $\omega$; $x^{(k)}_{n + 1} = \frac{k x^{(k)}_{n}(1 - x^{(k)}_{n}) + \omega x^{(k)}_{n}}{1 + \omega}$ for $\omega = 1.5$, $n= $"+" {}".format(i +1), fontsize=24)
x = np.random.uniform(0.0, 1.0, n_dots)
for _ in range(i + 1):
x = (k * x * (1 - x) + w * x)/(1 + w)
ax.plot(k, x, '.k', markersize=.04)
ax.set(xlabel=r'$k$', ylabel=r'$x^{(k)}_{n}$')
print("Done iteration = {}".format(i))
clear_output(wait=True)
fig = FuncAnimation(fig, animate, frames=iterations, interval=300, blit=True)
fig.save('feigenbaum_tree_with_bias.gif', writer='imagemagick', fps=10)
with open('feigenbaum_tree_with_bias.gif','rb') as f:
display(Image(data=f.read(), format='png'))
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 03:56, 9 February 2023 | 400 × 400 (255 KB) | Drhere (talk | contribs) | lower down the resolution to 400x400 | |
03:41, 9 February 2023 | 2,000 × 1,500 (2.09 MB) | Drhere (talk | contribs) | compressed the file size | ||
16:11, 8 February 2023 | 2,000 × 1,500 (6.35 MB) | Drhere (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
GIF file comment | Optimized with https://ezgif.com/optimize |
---|