CoCalc Public Filesifs-fractals.ipynbOpen with one click!
Author: Harald Schilly
Views : 122
Compute Environment: Ubuntu 18.04 (Deprecated)

IFS Fractals on CoCalc

https://github.com/francisp336/ifsFractals

Jupyter Kernel: Python 3 system-wide

In [1]:
import ifsFractals ifsFractals.__version__
'1.17.4'
In [2]:
from ifsFractals import * T1 = np.array([[0.7, 0., 0.15], [0., 0.7, 0.3], [0., 0., 1.]]) T2 = Translate(0.35, 0) @ Rotate(np.pi / 3) @ Scale(0.35 * np.sqrt(2)) T3 = Translate(0.3, 0.35) @ Rotate(-np.pi / 3) @ Scale(0.35 * np.sqrt(2)) T4 = Translate(0.45, 0.2) @ ScaleXY(1 / 10, 3 / 10) T = [T1, T2, T3, T4] Box = np.array([[0, 0, 1], [1, 0, 1], [1, 1, 1], [0, 1, 1], [0, 0, 1], [1 / 10, 1 / 10, 1], [1 / 10 - 1 / 20, 1 / 10 + 1 / 20, 1]]).T figuresToPlot = generate_figures(6, [Box], T) plot_figures(figuresToPlot, size=10, width=.8, colour='red')