HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyo
�
�)�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_msgstGcfcBs�eZdZgZiZed��Zed��Zed��Zed��Z	ed��Z
ed��Zed��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.pytdestroy_figGscCs.x'tjj�D]}tj|j�qWdS(N(RRRRR	(R
((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pytdestroy_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|j<dS(sL
        Make the figure corresponding to *manager* the active one.
        N(RRRRR	(R
Rtm((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyRrs
	
(t__name__t
__module__t__doc__RRtstaticmethodRRRRRRRRR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyRs	(
R#RRtatexitt	tracebackRtobjectRtregisterR(((sL/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/_pylab_helpers.pyt<module>s	p