Add grid alignment for left axis based on volume graduations

This commit is contained in:
gribse 2025-02-10 23:46:19 +01:00
parent 95096af181
commit 2754219e01

View file

@ -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()