OK.
I solved it :
https://github.com/matplotlib/matplotlib/issues/15852
%matplotlib widget
import matplotlib.pyplot as plt
from matplotlib.widgets import LassoSelector
fig, ax = plt.subplots()
def onSelect(x):
print(x)
lineprops = {'color': 'red', 'linewidth': 1, 'alpha': 0.8}
lsso = LassoSelector(ax=ax,
onselect=onSelect,
lineprops=lineprops,
useblit=False)
plt.show()
On Fri, Mar 20, 2020 at 9:20 AM Petro <[email protected]> wrote:
> Hi List.
> Is there any way to select a region of interest in matplotlib figure
> inside of python notebook?
> Thanks.
> Petro.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/b269a045-65e2-44e5-a709-e9b4b50e0241%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/b269a045-65e2-44e5-a709-e9b4b50e0241%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
______________________________
Petro Khoroshyy
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jupyter/CAEoO5zpX_TYxNWS2BM%2BxyG9gCK4ZO7cfhgKtp4AcpwmTkJSB9A%40mail.gmail.com.