當前位置: 首頁>>代碼示例>>Python>>正文


Python Figure.show方法代碼示例

本文整理匯總了Python中matplotlib.figure.Figure.show方法的典型用法代碼示例。如果您正苦於以下問題:Python Figure.show方法的具體用法?Python Figure.show怎麽用?Python Figure.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在matplotlib.figure.Figure的用法示例。


在下文中一共展示了Figure.show方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: export

# 需要導入模塊: from matplotlib.figure import Figure [as 別名]
# 或者: from matplotlib.figure.Figure import show [as 別名]
def export(cls):
        for name in ["required_interactive_framework",
                     "backend_version",
                     "FigureCanvas",
                     "FigureManager",
                     "new_figure_manager",
                     "new_figure_manager_given_figure",
                     "draw_if_interactive",
                     "show"]:
            setattr(sys.modules[cls.__module__], name, getattr(cls, name))

        # For back-compatibility, generate a shim `Show` class.

        class Show(ShowBase):
            def mainloop(self):
                return cls.mainloop()

        setattr(sys.modules[cls.__module__], "Show", Show)
        return cls 
開發者ID:PacktPublishing,項目名稱:Mastering-Elasticsearch-7.0,代碼行數:21,代碼來源:backend_bases.py

示例2: export

# 需要導入模塊: from matplotlib.figure import Figure [as 別名]
# 或者: from matplotlib.figure.Figure import show [as 別名]
def export(cls):
        for name in ["FigureCanvas",
                     "FigureManager",
                     "new_figure_manager",
                     "new_figure_manager_given_figure",
                     "draw_if_interactive",
                     "show"]:
            setattr(sys.modules[cls.__module__], name, getattr(cls, name))

        # For back-compatibility, generate a shim `Show` class.

        class Show(ShowBase):
            def mainloop(self):
                return cls.mainloop()

        setattr(sys.modules[cls.__module__], "Show", Show)
        return cls 
開發者ID:alvarobartt,項目名稱:twitter-stock-recommendation,代碼行數:19,代碼來源:backend_bases.py

示例3: show

# 需要導入模塊: from matplotlib.figure import Figure [as 別名]
# 或者: from matplotlib.figure.Figure import show [as 別名]
def show(self):
        """
        For GUI backends, show the figure window and redraw.
        For non-GUI backends, raise an exception to be caught
        by :meth:`~matplotlib.figure.Figure.show`, for an
        optional warning.
        """
        raise NonGuiException() 
開發者ID:PacktPublishing,項目名稱:Mastering-Elasticsearch-7.0,代碼行數:10,代碼來源:backend_bases.py

示例4: __call__

# 需要導入模塊: from matplotlib.figure import Figure [as 別名]
# 或者: from matplotlib.figure.Figure import show [as 別名]
def __call__(self, block=None):
        return self.show(block=block) 
開發者ID:PacktPublishing,項目名稱:Mastering-Elasticsearch-7.0,代碼行數:4,代碼來源:backend_bases.py

示例5: show

# 需要導入模塊: from matplotlib.figure import Figure [as 別名]
# 或者: from matplotlib.figure.Figure import show [as 別名]
def show(cls, block=None):
        """Show all figures.

        `show` blocks by calling `mainloop` if *block* is ``True``, or if it
        is ``None`` and we are neither in IPython's ``%pylab`` mode, nor in
        `interactive` mode.
        """
        if cls.mainloop is None:
            return
        managers = Gcf.get_all_fig_managers()
        if not managers:
            return
        for manager in managers:
            manager.show()
        if block is None:
            # Hack: Are we in IPython's pylab mode?
            from matplotlib import pyplot
            try:
                # IPython versions >= 0.10 tack the _needmain attribute onto
                # pyplot.show, and always set it to False, when in %pylab mode.
                ipython_pylab = not pyplot.show._needmain
            except AttributeError:
                ipython_pylab = False
            block = not ipython_pylab and not is_interactive()
            # TODO: The above is a hack to get the WebAgg backend working with
            # ipython's `%pylab` mode until proper integration is implemented.
            if get_backend() == "WebAgg":
                block = True
        if block:
            cls.mainloop()

    # This method is the one actually exporting the required methods. 
開發者ID:alvarobartt,項目名稱:twitter-stock-recommendation,代碼行數:34,代碼來源:backend_bases.py


注:本文中的matplotlib.figure.Figure.show方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。