Commit 2cca9db8 authored by Poulard Christine's avatar Poulard Christine :snake:
Browse files

Update ligne_d_eau-reservoir_avec_sliders_KetDh.py

parent 527652d7
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
...@@ -196,6 +196,7 @@ ax.legend() ...@@ -196,6 +196,7 @@ ax.legend()
ax_espace.xaxis.set_visible(False) ax_espace.xaxis.set_visible(False)
ax_espace.yaxis.set_visible(False) ax_espace.yaxis.set_visible(False)
ax_espace.patch.set_alpha(0.01) #sinon cet axe peut cacher le titre de l'axe des x au-dessus !
for pos in ['right', 'top', 'bottom', 'left']: for pos in ['right', 'top', 'bottom', 'left']:
ax_espace.spines[pos].set_visible(False) ax_espace.spines[pos].set_visible(False)
...@@ -203,7 +204,7 @@ for pos in ['right', 'top', 'bottom', 'left']: ...@@ -203,7 +204,7 @@ for pos in ['right', 'top', 'bottom', 'left']:
# K # K
slider_K = Slider( slider_K = Slider(
ax_slider_K, "Rugosité de Strickler", valmin=0.01, valmax=100, valfmt='%0.0f', valinit=K_ini, color="sienna") ax_slider_K, "Rugosité de Strickler", valmin=0.01, valmax=100, valstep=1, valfmt='%0.0f', valinit=K_ini, color="sienna")
slider_K.on_changed(update_from_sliders) slider_K.on_changed(update_from_sliders)
# dh # dh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment