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


Python Gcf.destroy方法代码示例

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


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

示例1: _widgetclosed

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def _widgetclosed( self ):
     if self.window._destroying: return
     self.window._destroying = True
     try:
         Gcf.destroy(self.num)
     except AttributeError:
         pass
开发者ID:qsnake,项目名称:matplotlib,代码行数:9,代码来源:backend_qt4.py

示例2: _widgetclosed

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def _widgetclosed(self):
     if self.window._destroying:
         return
     self.window._destroying = True
     map(self.canvas.mpl_disconnect, self._cids)
     try:
         Gcf.destroy(self.num)
     except AttributeError:
         pass
开发者ID:DanNixon,项目名称:mantid,代码行数:11,代码来源:figuremanager.py

示例3: new_figure_manager_given_figure

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def new_figure_manager_given_figure(num, figure):
     canvas = FigureCanvasNbAgg(figure)
     manager = FigureManagerNbAgg(canvas, num)
     if is_interactive():
         manager.show()
         figure.canvas.draw_idle()
     canvas.mpl_connect('close_event', lambda event: Gcf.destroy(num))
     return manager
开发者ID:endolith,项目名称:matplotlib,代码行数:10,代码来源:backend_nbagg.py

示例4: new_figure_manager_given_figure

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def new_figure_manager_given_figure(num, figure):
     canvas = FigureCanvasNbAgg(figure)
     if rcParams['nbagg.transparent']:
         figure.patch.set_alpha(0)
     manager = FigureManagerNbAgg(canvas, num)
     if is_interactive():
         manager.show()
         figure.canvas.draw_idle()
     canvas.mpl_connect('close_event', lambda event: Gcf.destroy(num))
     return manager
开发者ID:JIE2016G,项目名称:matplotlib,代码行数:12,代码来源:backend_nbagg.py

示例5: destroy

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
    def destroy(self, *args):
        # check for qApp first, as PySide deletes it in its atexit handler
        if QApplication.instance() is None:
            return

        if self.window._destroying:
            return
        self.window._destroying = True

        if self.toolbar:
            self.toolbar.destroy()
        self._ads_observer.observeAll(False)
        del self._ads_observer
        self._fig_interation.disconnect()
        self.window.close()

        try:
            Gcf.destroy(self.num)
        except AttributeError:
            pass
开发者ID:mantidproject,项目名称:mantid,代码行数:22,代码来源:figuremanager.py

示例6: close

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

示例7: destroy

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def destroy(*args):
     Gcf.destroy(num)
开发者ID:jklymak,项目名称:matplotlib,代码行数:4,代码来源:backend_gtk3.py

示例8: destroy

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def destroy(*args):
     self.window = None
     Gcf.destroy(self._num)
开发者ID:astraw,项目名称:matplotlib,代码行数:5,代码来源:backend_tkagg.py

示例9: closer

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def closer(event):
     Gcf.destroy(num)
开发者ID:ADSA-UIUC,项目名称:workshop-twitter-bot,代码行数:4,代码来源:backend_nbagg.py

示例10: show

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def show(self, **kwargs):
     self.canvas.show()
     Gcf.destroy(self._num)
开发者ID:yuchuangu85,项目名称:intellij-community,代码行数:5,代码来源:backend_interagg.py

示例11: destroy

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def destroy(self):
     self.window.hide()
     Fltk.Fl.wait(0)         # This is needed to make the last figure vanish.
     Gcf.destroy(self._num)
开发者ID:jcmdev0,项目名称:matplotlib,代码行数:6,代码来源:backend_fltkagg.py

示例12: destroy_figure

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
def destroy_figure(ptr, figman):
    figman.window.hide()
    Fltk.Fl.wait(0)         # This is needed to make the last figure vanish.
    Gcf.destroy(figman._num)
开发者ID:jcmdev0,项目名称:matplotlib,代码行数:6,代码来源:backend_fltkagg.py

示例13: show

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
def show():
    for manager in Gcf.get_all_fig_managers():
        manager.show()
        # TODO(oleg): Check if it's okay to destroy manager here.
        Gcf.destroy(manager.num)
开发者ID:oselivanov,项目名称:matplotlib_iterm2,代码行数:7,代码来源:backend_iterm2.py

示例14: destroy_figure

# 需要导入模块: from matplotlib._pylab_helpers import Gcf [as 别名]
# 或者: from matplotlib._pylab_helpers.Gcf import destroy [as 别名]
 def destroy_figure(self, *args):
     # This is the callback from the gui destroy For this specific figure
     Gcf.destroy(self.num)
开发者ID:fariza,项目名称:tabbed_backend,代码行数:5,代码来源:proxy_manager.py


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