當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。