I\'m trying the filter dataset based on a function(confidence ellipse) There is an example in matplotlib documentation as below:
https://matplotlib.org/devdocs/gallery/st