Add grid alignment for left axis based on volume graduations
This commit is contained in:
parent
95096af181
commit
2754219e01
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue