Ñò „ñ™Jc@sAdZddkZddkZd„Zdefd„ƒYZdS(s& Manage figures for pyplot interface. iÿÿÿÿNcCstitIJdS(N(tsyststderrtmsgs(tmsg((s?/usr/lib64/python2.6/site-packages/matplotlib/_pylab_helpers.pyt error_msgstGcfcBsƒeZdZgZhZed„ƒZed„ƒZed„ƒZed„ƒZ ed„ƒZ ed„ƒZ ed„ƒZ RS(s¼ 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 cCs7tii|dƒ}|dj oti|ƒn|S(s„ If figure manager *num* exists, make it the active figure and return the manager; otherwise return *None*. N(RtfigstgettNonet set_active(tnumt figManager((s?/usr/lib64/python2.6/site-packages/matplotlib/_pylab_helpers.pytget_fig_managers cCs‰ti|ƒpdSti|}ti}gt_x/|D]'}||jotii|ƒq<q<Wti|=|iƒtiƒdS(s¤ Try to remove all traces of figure *num*. In the interactive backends, this is bound to the window "destroy" and "delete" events. N(Rt has_fignumRt _activeQuetappendtdestroytgctcollect(R R toldQuetf((s?/usr/lib64/python2.6/site-packages/matplotlib/_pylab_helpers.pyR*s      cCs |tijS(s7 Return *True* if figure *num* exists. (RR(R ((s?/usr/lib64/python2.6/site-packages/matplotlib/_pylab_helpers.pyR BscCs tiiƒS(s3 Return a list of figure managers. (RRtvalues(((s?/usr/lib64/python2.6/site-packages/matplotlib/_pylab_helpers.pytget_all_fig_managersIscCsttiiƒƒS(s= Return the number of figures being managed. (tlenRRR(((s?/usr/lib64/python2.6/site-packages/matplotlib/_pylab_helpers.pytget_num_fig_managersPscCs*ttiƒdjodStidSdS(sE Return the manager of the active figure, or *None*. iiÿÿÿÿN(RRRR(((s?/usr/lib64/python2.6/site-packages/matplotlib/_pylab_helpers.pyt get_activeWscCsiti}gt_x/|D]'}||jotii|ƒqqWtii|ƒ|ti|is