Mis a jour le 2024-03-17, 13:3

Disposition Complexe de Graphes

Pour cela, on peut employer un GridSpec (une grille) et indiquer pour chaque graphe quels sont les cellules de la grilld qu'il doit occuper.
Définition de sous-graphes :
Paramètres que l'on peut passer à GridSpec :
Exemple : import matplotlib gs = matplotlib.gridspec.GridSpec(4, 3, width_ratios = [3, 3, 1], height_ratios = [1, 1, 1, 1], left = 0, right = 1, bottom = 0.1, top = 1, hspace = 0, wspace = 0) pyplot.subplot(gs[0, 0], facecolor = 'yellow') pyplot.subplot(gs[1,0:2], facecolor = 'skyblue') pyplot.subplot(gs[0:4, 2], facecolor = 'pink') pyplot.subplot(gs[2:4, 0:2], facecolor = 'orange')

Copyright python-simple.com
programmer en python, tutoriel python, graphes en python, Aymeric Duclert