当前位置: 首页>>代码示例>>Python>>正文


Python NavigationToolbar2.__init__方法代码示例

本文整理汇总了Python中matplotlib.backend_bases.NavigationToolbar2.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python NavigationToolbar2.__init__方法的具体用法?Python NavigationToolbar2.__init__怎么用?Python NavigationToolbar2.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在matplotlib.backend_bases.NavigationToolbar2的用法示例。


在下文中一共展示了NavigationToolbar2.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 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,代码行数:10,代码来源:pupilView.py

示例2: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
    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,代码行数:11,代码来源:backend_qt.py

示例3: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
    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,代码行数:11,代码来源:backend_qt4.py

示例4: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
    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,代码行数:11,代码来源:backend_sv4agg.py

示例5: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 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,代码行数:12,代码来源:drawing.py

示例6: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
	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,代码行数:18,代码来源:mpl3D_custom_widget.py

示例7: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 def __init__(self, canvas, window):
     self.win = window
     gtk.Toolbar.__init__(self)
     NavigationToolbar2.__init__(self, canvas)
     self._idle_draw_id = 0
开发者ID:AndreI11,项目名称:SatStressGui,代码行数:7,代码来源:backend_gtk.py

示例8: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 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,代码行数:8,代码来源:backend_tkagg.py

示例9: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 def __init__(self, canvas, window):
     self.canvas = canvas
     self.window = window
     NavigationToolbar2.__init__(self, canvas)
开发者ID:pwuertz,项目名称:matplotlib,代码行数:6,代码来源:_backend_tk.py

示例10: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 def __init__(self, *a, **k):
     NavigationToolbar2.__init__(self, *a, **k)
开发者ID:gagabzh,项目名称:wxPlotLab,代码行数:4,代码来源:Navigation.py

示例11: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 def __init__(self, canvas, window):
     self.win = window
     GObject.GObject.__init__(self)
     NavigationToolbar2.__init__(self, canvas)
     self.ctx = None
开发者ID:jklymak,项目名称:matplotlib,代码行数:7,代码来源:backend_gtk3.py

示例12: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 def __init__(self, canvas, parent):
     self.canvas = canvas
     NavigationToolbar2.__init__(self, canvas)
开发者ID:tacaswell,项目名称:VisTrails,代码行数:5,代码来源:figure_cell.py

示例13: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 def __init__(self, canvas):
     NavigationToolbar2.__init__(self, canvas)
开发者ID:AdamHeck,项目名称:matplotlib,代码行数:4,代码来源:backend_macosx.py

示例14: __init__

# 需要导入模块: from matplotlib.backend_bases import NavigationToolbar2 [as 别名]
# 或者: from matplotlib.backend_bases.NavigationToolbar2 import __init__ [as 别名]
 def __init__(self,canvas):
     self.canvas = canvas
     self.img_extensions = 'Image (*.png,*.pdf)'
     self._actions = {}
     QtGui.QToolBar.__init__(self)
     NavigationToolbar2.__init__(self,canvas)
开发者ID:ctogle,项目名称:dilapidator,代码行数:8,代码来源:qtgui.py


注:本文中的matplotlib.backend_bases.NavigationToolbar2.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。