In the current version of matplotlib.pyplot, the only way to change the color range is to set up limit and low limit separately. But for the requirement of frequently change the color range to ...
a ``Slider`` to control a single float. See :doc:`/gallery/widgets/slider_snap_demo` for an example of having the ``Slider`` snap to discrete values.