You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.1.1.post1080+g0db0992
Fork me on GitHub

This Page

Slider UI widget can snap to discrete values

The slider UI widget can take the optional argument valstep. Doing so forces the slider to take on only discrete values, starting from valmin and counting up to valmax with steps of size valstep.

If closedmax==True, then the slider will snap to valmax as well.