Jump to content

User:Thierry Dugnolle/Python

From Wikipedia, the free encyclopedia

The language of the machine must adapt to the human being, and not the other way round.


The Python files which generate my images and my animations:

A very little grain of salt

A very little body-centered cubic stone

Cubic Galaxy

The structure of diamonds

A Chua line

Continuous line crossing transition

High definition crossing of lines

High definition triangle

Pythagore and the origin of harmony: the perfect fifth

Pythagore and the origin of harmony: the octave

Stationary wave in a square

Sinusoidal progressive wave

Diffusion in one dimension

The French flag model of Lewis Wolpert

Travelling gaussian quantum 1D wave packet

Mathematical painter

Python files in Wikibooks


To make an animation, I make use of imagemagick in a terminal. You can install it with the following command:

sudo apt-get install imagemagick

If I open a terminal from the folder where my images are, I can convert them in an animation with the following command:

convert -delay 4 -loop 0 image*.bmp animation.gif

To install Pillow (a package needed for these files to work), you might need the following commands:

pip install --upgrade pip

sudo apt-get install python3-tk

python3 -m pip install --upgrade pip

python3 -m pip install --upgrade Pillow

To edit and run my Python files, I make use of Pycharm. You can download it for free. If you make use of Pycharm, click on the mouse right button on 'PIL' at the top of the file before you run it. Then click on 'Show context actions' with the left button, and on 'Install package Pillow', with the same button.