如何巧妙运用matplotlib的Lasso套索工具进行复杂图形的精确选择?
- 内容介绍
- 文章标签
- 相关推荐
本文共计834个文字,预计阅读时间需要4分钟。
套索概述+套索(Lasso)是类似于套索选择区(LassoSelector)的matplotlib部件(widgets),两者的主要区别在于:
+ 继承关系:套索具体实现定义了matplotlib.widgets.Lasso类,继承关系为:Widget-Axe
套索概述
套索(Lasso)是与套索选区(LassoSelector)相似的matplotlib部件(widgets),两者的区别主要在于:
继承关系:
- 套索具体实现定义为matplotlib.widgets.Lasso类,继承关系为:Widget->AxesWidget->Lasso。
- 套索选区具体实现定义为matplotlib.widgets.LassoSelector类,继承关系为:Widget->AxesWidget->_SelectorWidget->LassoSelector。
构造参数:
- Lasso类的签名为class matplotlib.widgets.Lasso(ax, xy, callback=None, useblit=True),Lasso类需要给定套索一个起始的坐标。
本文共计834个文字,预计阅读时间需要4分钟。
套索概述+套索(Lasso)是类似于套索选择区(LassoSelector)的matplotlib部件(widgets),两者的主要区别在于:
+ 继承关系:套索具体实现定义了matplotlib.widgets.Lasso类,继承关系为:Widget-Axe
套索概述
套索(Lasso)是与套索选区(LassoSelector)相似的matplotlib部件(widgets),两者的区别主要在于:
继承关系:
- 套索具体实现定义为matplotlib.widgets.Lasso类,继承关系为:Widget->AxesWidget->Lasso。
- 套索选区具体实现定义为matplotlib.widgets.LassoSelector类,继承关系为:Widget->AxesWidget->_SelectorWidget->LassoSelector。
构造参数:
- Lasso类的签名为class matplotlib.widgets.Lasso(ax, xy, callback=None, useblit=True),Lasso类需要给定套索一个起始的坐标。

