本文整理汇总了Python中matplotlib.backend_bases.NavigationToolbar2类的典型用法代码示例。如果您正苦于以下问题:Python NavigationToolbar2类的具体用法?Python NavigationToolbar2怎么用?Python NavigationToolbar2使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NavigationToolbar2类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: release_pan
def release_pan(self, event):
pos = (event.x, event.y)
self.callBackHideOverlay()
NavigationToolbar2.release_pan(self, event)
if event.button != 2:
if self.panPos and self.panPos != pos:
self.clear_auto()
self.panPos = None
开发者ID:B-Rich,项目名称:RTLSDR-Scanner,代码行数:8,代码来源:toolbars.py
示例2: __init__
def __init__(self, canvas, wind):
self.wind = wind
#wx.ToolBar.__init__(self, canvas.GetParent(), -1)
aui.AuiToolBar.__init__(self, wind, -1, wx.DefaultPosition, wx.DefaultSize, agwStyle=aui.AUI_TB_DEFAULT_STYLE | aui.AUI_TB_OVERFLOW | aui.AUI_TB_VERTICAL)
NavigationToolbar2.__init__(self, canvas)
self.canvas = canvas
self._idle = True
self.statbar = None
开发者ID:RuralCat,项目名称:CLipPYME,代码行数:8,代码来源:pupilView.py
示例3: __init__
def __init__( self, parent, canvas ):
self.canvas = canvas
qt.QWidget.__init__( self, parent )
# Layout toolbar buttons horizontally.
self.layout = qt.QHBoxLayout( self )
self.layout.setMargin( 2 )
NavigationToolbar2.__init__( self, canvas )
开发者ID:pv,项目名称:matplotlib-cvs,代码行数:9,代码来源:backend_qt.py
示例4: __init__
def __init__(self, canvas, parent):
self.canvas = canvas
QtGui.QWidget.__init__(self, parent)
self.layout = QtGui.QHBoxLayout(self)
self.layout.setMargin(0)
self.layout.setSpacing(0)
NavigationToolbar2.__init__(self, canvas)
开发者ID:BackupTheBerlios,项目名称:simuvis4-svn,代码行数:9,代码来源:backend_sv4agg.py
示例5: __init__
def __init__(self, canvas, parent, coordinates=True):
""" coordinates: should we show the coordinates on the right? """
self.canvas = canvas
self.coordinates = coordinates
self._actions = {}
"""A mapping of toolitem method names to their QActions"""
QtGui.QToolBar.__init__(self, parent)
NavigationToolbar2.__init__(self, canvas)
开发者ID:MengranDu,项目名称:matplotlib,代码行数:9,代码来源:backend_qt4.py
示例6: update
def update(self):
_focus = windowing.FocusManager()
self._axes = self.canvas.figure.axes
naxes = len(self._axes)
#if not hasattr(self, "omenu"):
# self.set_active(range(naxes))
# self.omenu = AxisMenu(master=self, naxes=naxes)
#else:
# self.omenu.adjust(naxes)
NavigationToolbar2.update(self)
开发者ID:astraw,项目名称:matplotlib,代码行数:10,代码来源:backend_tkagg.py
示例7: __init__
def __init__(self, canvas, view, subplots=False):
self.view = view
self.main_window = view.locate_widget('main_window')
self.toolbar = view.locate_widget('toolbar')
self.statusbar = view.locate_widget('statusbar')
self.subplots = subplots
#Gtk.Toolbar.__init__(self)
NavigationToolbar2.__init__(self, canvas)
self._idle_draw_id = 0
view.ui.main_frame.connect('destroy', self.on_destroy)
开发者ID:eugeneai,项目名称:dispersive,代码行数:10,代码来源:drawing.py
示例8: __init__
def __init__(self , parent , canvas , direction = 'h' ) :
#NavigationToolbar.__init__(self,parent,canevas)
#self.layout = QVBoxLayout( self )
self.canvas = canvas
QWidget.__init__( self, parent )
if direction=='h' :
self.layout = QHBoxLayout( self )
else :
self.layout = QVBoxLayout( self )
self.layout.setMargin( 2 )
self.layout.setSpacing( 0 )
NavigationToolbar2.__init__( self, canvas )
开发者ID:pombredanne,项目名称:toolz-1,代码行数:16,代码来源:mpl3D_custom_widget.py
示例9: forward
def forward(self, event):
self.callBackHideOverlay()
NavigationToolbar2.forward(self, event)
self.clear_auto()
开发者ID:B-Rich,项目名称:RTLSDR-Scanner,代码行数:4,代码来源:toolbars.py
示例10: update
def update(self):
_focus = windowing.FocusManager()
self._axes = self.canvas.figure.axes
NavigationToolbar2.update(self)
开发者ID:pwuertz,项目名称:matplotlib,代码行数:4,代码来源:_backend_tk.py
示例11: __init__
def __init__(self, canvas, window):
self.canvas = canvas
self.window = window
NavigationToolbar2.__init__(self, canvas)
开发者ID:pwuertz,项目名称:matplotlib,代码行数:4,代码来源:_backend_tk.py
示例12: drag_pan
def drag_pan(self, event):
if not self.panPos:
self.panPos = (event.x, event.y)
NavigationToolbar2.drag_pan(self, event)
开发者ID:B-Rich,项目名称:RTLSDR-Scanner,代码行数:4,代码来源:toolbars.py
示例13: __init__
def __init__(self, canvas, window):
self.win = window
GObject.GObject.__init__(self)
NavigationToolbar2.__init__(self, canvas)
self.ctx = None
开发者ID:jklymak,项目名称:matplotlib,代码行数:5,代码来源:backend_gtk3.py
示例14: release_zoom
def release_zoom(self, event):
self.callBackHideOverlay()
NavigationToolbar2.release_zoom(self, event)
self.clear_auto()
开发者ID:B-Rich,项目名称:RTLSDR-Scanner,代码行数:4,代码来源:toolbars.py
示例15: __init__
def __init__(self, canvas, window):
self.canvas = canvas
self.window = window
self._idle = True
#Tk.Frame.__init__(self, master=self.canvas._tkcanvas)
NavigationToolbar2.__init__(self, canvas)
开发者ID:astraw,项目名称:matplotlib,代码行数:6,代码来源:backend_tkagg.py
示例16: __init__
def __init__(self, canvas, parent):
self.canvas = canvas
NavigationToolbar2.__init__(self, canvas)
开发者ID:tacaswell,项目名称:VisTrails,代码行数:3,代码来源:figure_cell.py
示例17: __init__
def __init__(self, canvas, window):
self.win = window
gtk.Toolbar.__init__(self)
NavigationToolbar2.__init__(self, canvas)
self._idle_draw_id = 0
开发者ID:AndreI11,项目名称:SatStressGui,代码行数:5,代码来源:backend_gtk.py
示例18: pan
def pan(self, *args):
NavigationToolbar2.pan(self, *args)
开发者ID:tacaswell,项目名称:VisTrails,代码行数:2,代码来源:figure_cell.py
示例19: __init__
def __init__(self, canvas):
NavigationToolbar2.__init__(self, canvas)
开发者ID:AdamHeck,项目名称:matplotlib,代码行数:2,代码来源:backend_macosx.py
示例20: zoom
def zoom(self, *args):
NavigationToolbar2.zoom(self, *args)
开发者ID:tacaswell,项目名称:VisTrails,代码行数:2,代码来源:figure_cell.py
注:本文中的matplotlib.backend_bases.NavigationToolbar2类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论