ó ù)°Uc@sidZddlZddlZddlZddlZd„Zdefd„ƒYZejej ƒdS(s& Manage figures for pyplot interface. iÿÿÿÿNcCstj|IJdS(N(tsyststderr(tmsg((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyt error_msg stGcfcBs¡eZdZgZiZed„ƒZed„ƒZed„ƒZed„ƒZ ed„ƒZ ed„ƒZ ed„ƒZ ed„ƒZ ed „ƒZRS( 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 cCs5tjj|dƒ}|dk r1tj|ƒn|S(s„ If figure manager *num* exists, make it the active figure and return the manager; otherwise return *None*. N(RtfigstgettNonet set_active(tnumtmanager((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pytget_fig_manager#s cCs˜tj|ƒsdStj|}|jj|jƒtj}gt_x-|D]%}||krMtjj|ƒqMqMWtj|=|jƒt j ƒ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_fignumRtcanvastmpl_disconnectt_cidgcft _activeQuetappendtdestroytgctcollect(R R toldQuetf((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyR.s       cCsCx<tjjƒD]+}|jj|krtj|jƒqqWdS(s*fig* is a Figure instanceN(RRtvaluesR tfigureRR (tfigR ((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyt destroy_figGscCs.x'tjjƒD]}tj|jƒqWdS(N(RRRRR (R ((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyt destroy_allNscCs |tjkS(s7 Return *True* if figure *num* exists. (RR(R ((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyR TscCs tjjƒS(s3 Return a list of figure managers. (RRR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pytget_all_fig_managers[scCsttjjƒƒS(s= Return the number of figures being managed. (tlenRRR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pytget_num_fig_managersbscCs(ttjƒdkrdStjdSdS(sE Return the manager of the active figure, or *None*. iiÿÿÿÿN(RRRR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyt get_activeiscCsgtj}gt_x-|D]%}||krtjj|ƒqqWtjj|ƒ|tj|js    p