| Hosted by CoCalc | Download
Kernel: Python 3 (system-wide)

IFS Fractals on CoCalc

https://github.com/francisp336/ifsFractals

Jupyter Kernel: Python 3 system-wide

import ifsFractals ifsFractals.__version__
'1.17.4'
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')
Image in a Jupyter notebook