Documentation

Function defined in library pytamaro.fr

compose(graphique_premier_plan, graphique_arriere_plan)

composegraphique_premier_plangraphique_arriere_plan

Crée un nouveau graphique en composant les deux graphiques fournis. Le premier graphique est maintenu au premier plan, le second en arrière plan. Les graphiques sont alignés en superposant les points d’ancrage.

Le point d’ancrage du graphique résultant est celui utilisé pour la composition.

graphique_premier_planle graphique au premier plan

graphique_arriere_planle graphique en arrière plan

Le graphique qui résulte de la composition
Code
montre_graphique(compose(ancre(haut_droite, rectangle(50, 50, bleu)), ancre(bas_gauche, 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)