From 2754219e01fde577ac8417c02b3d9c950a6ab227 Mon Sep 17 00:00:00 2001 From: gribse Date: Mon, 10 Feb 2025 23:46:19 +0100 Subject: [PATCH] Add grid alignment for left axis based on volume graduations --- abaqueCuve.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/abaqueCuve.py b/abaqueCuve.py index c9e1fda..da03521 100644 --- a/abaqueCuve.py +++ b/abaqueCuve.py @@ -108,6 +108,10 @@ ax2.tick_params(axis='y', labelcolor='r') ax2.set_yticks(flèche_grad) # Aligner les graduations de l'axe de droite sur les hauteurs ax2.grid(visible=True, linestyle='--', alpha=0.6, which='both') # Quadrillage en pointillé +# Ajouter un quadrillage qui colle aux volumes +ax1.set_yticks(volumes_grad) # Aligner les graduations de l'axe de gauche sur les volumes +ax1.grid(visible=True, linestyle='--', alpha=0.6, which='both') # Quadrillage en pointillé + # Show the plot fig.tight_layout() plt.show()