Documentation

Function defined in library pytamaro.fr

superpose(graphique_premier_plan, graphique_arriere_plan)

superposegraphique_premier_plangraphique_arriere_plan

Créé un nouveau graphique en superposant les deux graphiques fournis, en gardant le premier au premier plan et en mettant le second en arrière plan. Les graphiques sont superposés par rapport à leur centre.

Le point d’ancrage du nouveau graphique est en son centre.

graphique_premier_planle graphique au premier plan

graphique_arriere_planle graphique en arrière plan

Le graphique résultant de la superposition des deux graphiques fournis
Code
montre_graphique(superpose(rectangle(50, 50, bleu), rectangle(100, 50, rouge)))
Output
Graphical output from execution result

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version 0a56f08d (Wed, 29 Apr 2026 08:58:46 GMT)