Matplotlib Tutorial

In this tutorial we are going to learn how to use the SpanSelector widget to select a region in your graph and return the min and max values from a mouse selection.

A SpanSelector is a widget gives user the capability to visually select a min and max range on a single axis and call a function with those values.


Python Code Snippet