This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
How to interactively select part of an array displayed as an image with matplotlib. | |
""" | |
import matplotlib.pyplot as plt | |
from matplotlib.path import Path | |
from matplotlib.widgets import LassoSelector | |
import numpy as np |