class_docstr: Singleton to manage a set of integer-numbered figures.
  
  This class is never instantiated; it consists of two class
  attributes (a list and a dictionary), and a set of static
  methods that operate on those attributes, accessing them
  directly as class attributes.
  
  Attributes:
  
      *figs*:
        dictionary of the form {*num*: *manager*, ...}
  
      *_activeQue*:
        list of *managers*, with active one at the end
class_docstr_tok: ["Singleton","to","manage","a","set","of","integer-numbered","figures",".","This","class","is","never","instantiated",";","it","consists","of","two","class","attributes","(","a","list","and","a","dictionary",")",",","and","a","set","of","static","methods","that","operate","on","those","attributes",",","accessing","them","directly","as","class","attributes",".","Attributes",":","*","figs","*",":","dictionary","of","the","form","{","*","num","*",":","*","manager","*",",","...","}","*","_activeQue","*",":","list","of","*","managers","*",",","with","active","one","at","the","end"]
docstr: Try to remove all traces of figure *num*.
  
  In the interactive backends, this is bound to the
  window "destroy" and "delete" events.
docstr_tok: ["Try","to","remove","all","traces","of","figure","*","num","*",".","In","the","interactive","backends",",","this","is","bound","to","the","window","``","destroy","''","and","``","delete","''","events","."]
code: def destroy(cls, num):
      """
      Try to remove all traces of figure *num*.
  
      In the interactive backends, this is bound to the
      window "destroy" and "delete" events.
      """
      if not cls.has_fignum(num):
          return
      manager = cls.figs[num]
      manager.canvas.mpl_disconnect(manager._cidgcf)
      cls._activeQue.remove(manager)
      del cls.figs[num]
      manager.destroy()
      gc.collect(1)
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/_pylab_helpers.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import atexit
  import gc
  import sys
label_desc: Use image node_id 2 for calling the Gcf obj's underlying member method code with example usage: obj.destroy(cls, num) without return types