本文整理汇总了Python中matplotlib.backends.backend_qt4agg.NavigationToolbar2QTAgg._init_toolbar方法的典型用法代码示例。如果您正苦于以下问题:Python NavigationToolbar2QTAgg._init_toolbar方法的具体用法?Python NavigationToolbar2QTAgg._init_toolbar怎么用?Python NavigationToolbar2QTAgg._init_toolbar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.backends.backend_qt4agg.NavigationToolbar2QTAgg
的用法示例。
在下文中一共展示了NavigationToolbar2QTAgg._init_toolbar方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _init_toolbar
# 需要导入模块: from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg [as 别名]
# 或者: from matplotlib.backends.backend_qt4agg.NavigationToolbar2QTAgg import _init_toolbar [as 别名]
def _init_toolbar(self):
selectAction = self.addAction(QIcon(":/plugins/spatialplot/action.png"), 'Select Features', self.select_mode)
selectAction.setToolTip('Click and drag the plot to select features in the QGIS interface.')
selectAction.setCheckable(True)
self._actions['select'] = selectAction
NavigationToolbar2QTAgg._init_toolbar(self)
示例2: _init_toolbar
# 需要导入模块: from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg [as 别名]
# 或者: from matplotlib.backends.backend_qt4agg.NavigationToolbar2QTAgg import _init_toolbar [as 别名]
def _init_toolbar(self):
NavigationToolbar2QTAgg._init_toolbar(self)
# Set status tip for all matplotlib actions
for action in self.actions():
action.setStatusTip(action.toolTip())