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


Python matplotlib.backend_bases方法代码示例

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


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

示例1: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of
        :class:`backend_bases.Timer`.  This is useful for getting
        periodic events through the backend's native event
        loop. Implemented only for backends with GUIs.

        optional arguments:

        *interval*
            Timer interval in milliseconds

        *callbacks*
            Sequence of (func, args, kwargs) where func(*args, **kwargs)
            will be executed by the timer every *interval*.

    """
        return TimerQT(*args, **kwargs) 
开发者ID:miloharper,项目名称:neural-network-animation,代码行数:20,代码来源:backend_qt5.py

示例2: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of
        :class:`backend_bases.Timer`.  This is useful for getting
        periodic events through the backend's native event
        loop. Implemented only for backends with GUIs.

        Other Parameters
        ----------------
        interval : scalar
            Timer interval in milliseconds

        callbacks : list
            Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
            will be executed by the timer every *interval*.

        """
        return TimerQT(*args, **kwargs) 
开发者ID:Relph1119,项目名称:GraphicDesignPatternByPython,代码行数:20,代码来源:backend_qt5.py

示例3: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of
        :class:`backend_bases.Timer`. This is useful for getting periodic
        events through the backend's native event loop. Implemented only
        for backends with GUIs.

        Other Parameters
        ----------------
        interval : scalar
            Timer interval in milliseconds
        callbacks : list
            Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
            will be executed by the timer every *interval*.

        """
        return TimerWx(*args, **kwargs) 
开发者ID:Relph1119,项目名称:GraphicDesignPatternByPython,代码行数:19,代码来源:backend_wx.py

示例4: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
        This is useful for getting periodic events through the backend's native
        event loop. Implemented only for backends with GUIs.

        Other Parameters
        ----------------
        interval : scalar
            Timer interval in milliseconds
        callbacks : list
            Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
            will be executed by the timer every *interval*.

        """
        return TimerTk(self._tkcanvas, *args, **kwargs) 
开发者ID:Relph1119,项目名称:GraphicDesignPatternByPython,代码行数:18,代码来源:_backend_tk.py

示例5: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of
        :class:`backend_bases.Timer`.  This is useful for getting
        periodic events through the backend's native event
        loop. Implemented only for backends with GUIs.

        optional arguments:

        *interval*
            Timer interval in milliseconds

        *callbacks*
            Sequence of (func, args, kwargs) where func(*args, **kwargs)
            will be executed by the timer every *interval*.
        """
        return TimerQT(*args, **kwargs) 
开发者ID:fcollonval,项目名称:matplotlib_qtquick_playground,代码行数:19,代码来源:backend_qquick5agg.py

示例6: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of
        :class:`backend_bases.Timer`. This is useful for getting periodic
        events through the backend's native event loop. Implemented only
        for backends with GUIs.

        Other Parameters
        ----------------
        interval : scalar
            Timer interval in milliseconds
        callbacks : list
            Sequence of (func, args, kwargs) where ``func(*args, **kwargs)``
            will be executed by the timer every *interval*.

        """
        return TimerWx(self, *args, **kwargs) 
开发者ID:alvarobartt,项目名称:twitter-stock-recommendation,代码行数:19,代码来源:backend_wx.py

示例7: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
        This is useful for getting periodic events through the backend's native
        event loop. Implemented only for backends with GUIs.
        optional arguments:
        *interval*
          Timer interval in milliseconds
        *callbacks*
          Sequence of (func, args, kwargs) where func(*args, **kwargs) will
          be executed by the timer every *interval*.
        """
        return TimerKivy(*args, **kwargs) 
开发者ID:kivy-garden,项目名称:garden.matplotlib,代码行数:15,代码来源:backend_kivy.py

示例8: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
        This is useful for getting periodic events through the backend's native
        event loop. Implemented only for backends with GUIs.

        optional arguments:

        *interval*
          Timer interval in milliseconds
        *callbacks*
          Sequence of (func, args, kwargs) where func(*args, **kwargs) will
          be executed by the timer every *interval*.
        """
        return TimerTk(self._tkcanvas, *args, **kwargs) 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:17,代码来源:backend_tkagg.py

示例9: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
        This is useful for getting periodic events through the backend's native
        event loop. Implemented only for backends with GUIs.

        optional arguments:

        *interval*
          Timer interval in milliseconds
        *callbacks*
          Sequence of (func, args, kwargs) where func(*args, **kwargs) will
          be executed by the timer every *interval*.
        """
        return TimerGTK(*args, **kwargs) 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:17,代码来源:backend_gtk.py

示例10: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
        This is useful for getting periodic events through the backend's native
        event loop. Implemented only for backends with GUIs.

        optional arguments:

        *interval*
          Timer interval in milliseconds
        *callbacks*
          Sequence of (func, args, kwargs) where func(*args, **kwargs) will
          be executed by the timer every *interval*.
        """
        return TimerGTK3(*args, **kwargs) 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:17,代码来源:backend_gtk3.py

示例11: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
        This is useful for getting periodic events through the backend's native
        event loop. Implemented only for backends with GUIs.

        optional arguments:

        *interval*
          Timer interval in milliseconds
        *callbacks*
          Sequence of (func, args, kwargs) where func(*args, **kwargs) will
          be executed by the timer every *interval*.
        """
        return TimerWx(self, *args, **kwargs) 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:17,代码来源:backend_wx.py

示例12: _print_bitmap

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def _print_bitmap(self, filename, *args, **kwargs):
        # In backend_bases.py, print_figure changes the dpi of the figure.
        # But since we are essentially redrawing the picture, we need the
        # original dpi. Pick it up from the renderer.
        dpi = kwargs['dpi']
        old_dpi = self.figure.dpi
        self.figure.dpi = self.renderer.dpi
        width, height = self.figure.get_size_inches()
        width, height = width*dpi, height*dpi
        filename = unicode(filename)
        self.write_bitmap(filename, width, height, dpi)
        self.figure.dpi = old_dpi 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:14,代码来源:backend_macosx.py

示例13: new_timer

# 需要导入模块: import matplotlib [as 别名]
# 或者: from matplotlib import backend_bases [as 别名]
def new_timer(self, *args, **kwargs):
        """
        Creates a new backend-specific subclass of :class:`backend_bases.Timer`.
        This is useful for getting periodic events through the backend's native
        event loop. Implemented only for backends with GUIs.

        optional arguments:

        *interval*
          Timer interval in milliseconds
        *callbacks*
          Sequence of (func, args, kwargs) where func(*args, **kwargs) will
          be executed by the timer every *interval*.
        """
        return TimerMac(*args, **kwargs) 
开发者ID:ktraunmueller,项目名称:Computable,代码行数:17,代码来源:backend_macosx.py


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