o
    ¡:´aúu  ã                   @   sì  d Z ddlZddlZddlmZ ddlZddlZddlmZ ddl	m
Z
 ddlZddlZddlZddlZddlZddlmZmZ ddlmZ ddlZddlZddlmZ ddlmZ dd	lmZmZmZ e d
¡ ej dddej!ƒZ!dZ"dd„ Z#dd„ Z$dd„ Z%dd„ Z&dd„ Z'G dd„ deƒZ(dd„ Z)dd„ Z*dd „ Z+ej d!d"dd#d$„ ƒZ,e  d!¡d%d&„ ƒZ-d'd(„ Z.d)Z/d*Z0e1ƒ Z2G d+d,„ d,ƒZ3d?d-d.„Z4G d/d0„ d0e5ƒZ6e  d!¡d@d1d2„ƒZ7d@d3d4„Z8dAd6d7„Z9d8d9„ Z:	:	:	dBd;d<„Z;d=d>„ Z<dS )CaM  
A directive for including a Matplotlib plot in a Sphinx document
================================================================

By default, in HTML output, `plot` will include a .png file with a link to a
high-res .png and .pdf.  In LaTeX output, it will include a .pdf.

The source code for the plot may be included in one of three ways:

1. **A path to a source file** as the argument to the directive::

     .. plot:: path/to/plot.py

   When a path to a source file is given, the content of the
   directive may optionally contain a caption for the plot::

     .. plot:: path/to/plot.py

        The plot caption.

   Additionally, one may specify the name of a function to call (with
   no arguments) immediately after importing the module::

     .. plot:: path/to/plot.py plot_function1

2. Included as **inline content** to the directive::

     .. plot::

        import matplotlib.pyplot as plt
        import matplotlib.image as mpimg
        import numpy as np
        img = mpimg.imread('_static/stinkbug.png')
        imgplot = plt.imshow(img)

3. Using **doctest** syntax::

     .. plot::

        A plotting example:
        >>> import matplotlib.pyplot as plt
        >>> plt.plot([1, 2, 3], [4, 5, 6])

Options
-------

The ``plot`` directive supports the following options:

    format : {'python', 'doctest'}
        The format of the input.  If unset, the format is auto-detected.

    include-source : bool
        Whether to display the source code. The default can be changed using
        the `plot_include_source` variable in :file:`conf.py` (which itself
        defaults to False).

    encoding : str
        If this source file is in a non-UTF8 or non-ASCII encoding, the
        encoding must be specified using the ``:encoding:`` option.  The
        encoding will not be inferred using the ``-*- coding -*-`` metacomment.

    context : bool or str
        If provided, the code will be run in the context of all previous plot
        directives for which the ``:context:`` option was specified.  This only
        applies to inline code plot directives, not those run from files. If
        the ``:context: reset`` option is specified, the context is reset
        for this and future plots, and previous figures are closed prior to
        running the code. ``:context: close-figs`` keeps the context but closes
        previous figures before running the code.

    nofigs : bool
        If specified, the code block will be run, but no figures will be
        inserted.  This is usually useful with the ``:context:`` option.

    caption : str
        If specified, the option's argument will be used as a caption for the
        figure. This overwrites the caption given in the content, when the plot
        is generated from a file.

Additionally, this directive supports all of the options of the `image`
directive, except for *target* (since plot will add its own target).  These
include *alt*, *height*, *width*, *scale*, *align* and *class*.

Configuration options
---------------------

The plot directive has the following configuration options:

    plot_include_source
        Default value for the include-source option (default: False).

    plot_html_show_source_link
        Whether to show a link to the source in HTML (default: True).

    plot_pre_code
        Code that should be executed before each plot. If None (the default),
        it will default to a string containing::

            import numpy as np
            from matplotlib import pyplot as plt

    plot_basedir
        Base directory, to which ``plot::`` file names are relative to.
        If None or empty (the default), file names are relative to the
        directory where the file containing the directive is.

    plot_formats
        File formats to generate (default: ['png', 'hires.png', 'pdf']).
        List of tuples or strings::

            [(suffix, dpi), suffix, ...]

        that determine the file format and the DPI. For entries whose
        DPI was omitted, sensible defaults are chosen. When passing from
        the command line through sphinx_build the list should be passed as
        suffix:dpi,suffix:dpi, ...

    plot_html_show_formats
        Whether to show links to the files in HTML (default: True).

    plot_rcparams
        A dictionary containing any non-standard rcParams that should
        be applied before each plot (default: {}).

    plot_apply_rcparams
        By default, rcParams are applied when ``:context:`` option is not used
        in a plot directive.  If set, this configuration option overrides this
        behavior and applies rcParams before each plot.

    plot_working_directory
        By default, the working directory will be changed to the directory of
        the example, so the code can get at its data files, if any.  Also its
        path will be added to `sys.path` so it can import any helper modules
        sitting beside it.  This configuration option can be used to specify
        a central directory (also added to `sys.path`) where data files and
        helper modules for all code are located.

    plot_template
        Provide a customized template for preparing restructured text.
é    N)ÚStringIO)Úrelpath)ÚPath)Ú
directivesÚ	Directive)ÚImage)ÚFigureManagerBase)Ú_apiÚ_pylab_helpersÚcbookZaggz3.4z2docutils.parsers.rst.directives.images.Image.align)Zalternativeé   c                 C   sD   | r|   ¡ sdS |   ¡  ¡ dv rdS |   ¡  ¡ dv rdS td|  ƒ‚)NT)ÚnoÚ0ZfalseF)ZyesÚ1Útruez"%s" unknown boolean)ÚstripÚlowerÚ
ValueError©Úarg© r   úE/usr/lib/python3/dist-packages/matplotlib/sphinxext/plot_directive.pyÚ_option_boolean±   s   r   c                 C   s   | dv r| S t dƒ‚)N)NÚresetú
close-figsz2Argument should be None or 'reset' or 'close-figs')r   r   r   r   r   Ú_option_context½   s   r   c                 C   s   t  | d¡S )N)ÚpythonÚdoctest)r   Úchoicer   r   r   r   Ú_option_formatÃ   s   r   c                 C   s   t jdddd t | ¡S )Nú3.5ÚencodingÚoption)ÚnameZobj_type)r	   Zwarn_deprecatedr   r!   r   r   r   r   Ú_deprecated_option_encodingÇ   s   
r$   c           	      C   sÔ   |j  ¡ D ]b\}}|sq|j| }|du rq|j| }|jdv rg|D ]D}|jdkrf|}|D ]}|jdkr:| ¡ } nq-|d  |¡ |d  |¡ |d  |¡ |d  |¡ |jj	j
||f|jj	j|<  nq"qdS )z”
    To make plots referenceable, we need to move the reference from the
    "htmlonly" (or "latexonly") node to the actual figure node itself.
    N)Z	html_onlyZ
latex_onlyÚfigureÚcaptionÚidsÚnames)Z	nametypesÚitemsZnameidsr'   ZtagnameZastextÚremoveÚappendÚsettingsÚenvZdocnameÚlabels)	ÚappÚdocumentr#   ZexplicitZlabelidZnodeÚnZsectnameÚcr   r   r   Úmark_plot_labelsÌ   s4   




þÿó€÷r3   c                   @   sV   e Zd ZdZdZdZdZdZej	ej
ejejejejeeeejeej	dœZdd„ Zd	S )
ÚPlotDirectivezEThe ``.. plot::`` directive, as documented in the module's docstring.Tr   r   F)ÚaltÚheightÚwidthÚscaleÚalignÚclassúinclude-sourceÚformatÚcontextÚnofigsr!   r&   c              
   C   sH   zt | j| j| j| j| j| jƒW S  ty# } z|  t	|ƒ¡‚d}~ww )zRun the plot directive.N)
ÚrunÚ	argumentsÚcontentÚoptionsÚstate_machineÚstateÚlinenoÚ	ExceptionÚerrorÚstr)ÚselfÚer   r   r   r?      s   ÿ€ÿzPlotDirective.runN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Zhas_contentZrequired_argumentsZoptional_argumentsZfinal_argument_whitespacer   Z	unchangedZlength_or_unitlessZ length_or_percentage_or_unitlessZnonnegative_intr   r9   Zclass_optionr   r   r   Úflagr$   Zoption_specr?   r   r   r   r   r4   ê   s(    ôr4   c                 C   sP   |d u r$| j jdkr&t d¡}| jtdƒ }|jdd t ||¡ d S d S d S )NZhtmlz!plot_directive/plot_directive.cssZ_staticT©Úexist_ok)	Úbuilderr<   r   Z_get_data_pathÚoutdirr   ÚmkdirÚshutilÚcopy)r/   ÚexcÚsrcÚdstr   r   r   Ú_copy_css_file	  s   
ürZ   c                 C   sæ   | t _| jt _| jt _|  dt¡ |  dd d¡ |  ddd¡ |  ddd¡ |  dg d¢d¡ |  d	d d¡ |  d
dd¡ |  di d¡ |  ddd¡ |  dd d¡ |  dd d¡ |  dt¡ |  	d¡ |  dt
¡ ddtjdœ}|S )NZplotÚplot_pre_codeTÚplot_include_sourceFÚplot_html_show_source_linkÚplot_formats©Zpngz	hires.pngZpdfÚplot_basedirÚplot_html_show_formatsÚplot_rcparamsÚplot_apply_rcparamsÚplot_working_directoryÚplot_templatezdoctree-readzplot_directive.csszbuild-finished)Zparallel_read_safeZparallel_write_safeÚversion)Úsetupr/   ÚconfigÚconfdirZadd_directiver4   Zadd_config_valueZconnectr3   Zadd_css_filerZ   Ú
matplotlibÚ__version__)r/   Zmetadatar   r   r   rg     s*   
ÿrg   c                 C   sF   z	t | ddƒ W dS  ty   Y nw t  dtj¡}| | ¡}t|ƒS )Nz<string>ÚexecFz^\s*>>>)ÚcompileÚSyntaxErrorÚreÚMÚsearchÚbool)ÚtextÚrÚmr   r   r   Úcontains_doctest-  s   ÿ
rv   r    zdoctest.script_from_examplesc                 C   sn   t | ƒs| S d}|  d¡D ]'}t d|¡}|r!|| d¡d 7 }q| ¡ r0|d| ¡  d 7 }q|d7 }q|S )z_
    Extract code from a piece of text, which contains either Python code
    or doctests.
    Ú Ú
z^\s*(>>>|\.\.\.) (.*)$r   z# )rv   Úsplitro   ÚmatchÚgroupr   )rs   ÚcodeÚlineru   r   r   r   Úunescape_doctest9  s   
r~   c                 C   s   t | ƒd S )úSplit code at plt.show().é   )Ú_split_code_at_show)rs   r   r   r   Úsplit_code_at_showM  s   r‚   c                 C   s   g }t | ƒ}g }|  d¡D ]'}|s| ¡ dks|r/| ¡ dkr/| |¡ | d |¡¡ g }q| |¡ qd |¡ ¡ rD| d |¡¡ ||fS )r   rx   z
plt.show()z>>> plt.show())rv   ry   r   r+   Újoin)rs   ÚpartsÚ
is_doctestÚpartr}   r   r   r   r   S  s    ÿ
ÿ
r   a(  
{{ source_code }}

.. only:: html

   {% if source_link or (html_show_formats and not multi_image) %}
   (
   {%- if source_link -%}
   `Source code <{{ source_link }}>`__
   {%- endif -%}
   {%- if html_show_formats and not multi_image -%}
     {%- for img in images -%}
       {%- for fmt in img.formats -%}
         {%- if source_link or not loop.first -%}, {% endif -%}
         `{{ fmt }} <{{ dest_dir }}/{{ img.basename }}.{{ fmt }}>`__
       {%- endfor -%}
     {%- endfor -%}
   {%- endif -%}
   )
   {% endif %}

   {% for img in images %}
   .. figure:: {{ build_dir }}/{{ img.basename }}.{{ default_fmt }}
      {% for option in options -%}
      {{ option }}
      {% endfor %}

      {% if html_show_formats and multi_image -%}
        (
        {%- for fmt in img.formats -%}
        {%- if not loop.first -%}, {% endif -%}
        `{{ fmt }} <{{ dest_dir }}/{{ img.basename }}.{{ fmt }}>`__
        {%- endfor -%}
        )
      {%- endif -%}

      {{ caption }}  {# appropriate leading whitespace added beforehand #}
   {% endfor %}

.. only:: not html

   {% for img in images %}
   .. figure:: {{ build_dir }}/{{ img.basename }}.*
      {% for option in options -%}
      {{ option }}
      {% endfor -%}

      {{ caption }}  {# appropriate leading whitespace added beforehand #}
   {% endfor %}

zi
.. only:: html

   [`source code <%(linkdir)s/%(basename)s.py>`__]

Exception occurred rendering plot.

c                   @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )Ú	ImageFilec                 C   s   || _ || _g | _d S ©N)ÚbasenameÚdirnameÚformats)rI   r‰   rŠ   r   r   r   Ú__init__¬  s   
zImageFile.__init__c                 C   s   t j | jd| j|f ¡S )Nz%s.%s)ÚosÚpathrƒ   rŠ   r‰   )rI   r<   r   r   r   Úfilename±  s   zImageFile.filenamec                    s   ‡ fdd„ˆ j D ƒS )Nc                    s   g | ]}ˆ   |¡‘qS r   )r   )Ú.0Úfmt©rI   r   r   Ú
<listcomp>µ  s    z'ImageFile.filenames.<locals>.<listcomp>)r‹   r’   r   r’   r   Ú	filenames´  s   zImageFile.filenamesN)rK   rL   rM   rŒ   r   r”   r   r   r   r   r‡   «  s    r‡   c                    sR   t j |¡sdS |du rg }| g|¢}dd„ ‰t  |¡j‰ t‡ ‡fdd„|D ƒƒS )a4  
    Return whether *derived* is out-of-date relative to *original* or any of
    the RST files included in it using the RST include directive (*includes*).
    *derived* and *original* are full paths, and *includes* is optionally a
    list of full paths which may have been included in the *original*.
    TNc                 S   s   t j | ¡o|t  | ¡jk S rˆ   )r   rŽ   ÚexistsÚstatÚst_mtime)ÚoriginalÚderived_mtimer   r   r   Úout_of_date_oneÆ  s   ÿz$out_of_date.<locals>.out_of_date_onec                 3   s    | ]}ˆ|ˆ ƒV  qd S rˆ   r   ©r   Úf©r™   rš   r   r   Ú	<genexpr>Ë  s   € zout_of_date.<locals>.<genexpr>)r   rŽ   r•   r–   r—   Úany)r˜   ZderivedÚincludesZfiles_to_checkr   r   r   Úout_of_date¸  s   
r¡   c                   @   s   e Zd ZdS )Ú	PlotErrorN)rK   rL   rM   r   r   r   r   r¢   Î  s    r¢   c                 C   s   t t| ƒ|||ƒ dS )ús
    Import a Python module from a path, and run the function given by
    name, if function_name is not None.
    N)Ú	_run_coder~   )r|   Ú	code_pathÚnsÚfunction_namer   r   r   Úrun_codeÒ  s   r¨   c                 C   s  t  ¡ }tjjdur=z	t  tjj¡ W n< ty( } z	tt|ƒd ƒ|‚d}~w ty< } z	tt|ƒd ƒ|‚d}~ww |durPt j	 
t j	 |¡¡}t  |¡ tjt|gt  ¡ gtj	¢d› t tƒ ¡| zmzP|du roi }|s†tjjdu r}td|ƒ n	tttjjƒ|ƒ d| v rŽd|d< tjtdd	„ d
 t| |ƒ |dur¨t|d |ƒ W d  ƒ n1 s²w   Y  W n ttfyÍ } ztt ¡ ƒ|‚d}~ww W t  |¡ nt  |¡ w W d  ƒ n1 såw   Y  W d  ƒ |S W d  ƒ |S 1 sýw   Y  |S )r£   Nz[
`plot_working_directory` option inSphinx configuration file must be a valid directory pathzV
`plot_working_directory` option in Sphinx configuration file must be a string or None)ÚargvrŽ   z8import numpy as np
from matplotlib import pyplot as plt
Ú__main__rK   c                 S   s   d S rˆ   r   r’   r   r   r   Ú<lambda>  s    z_run_code.<locals>.<lambda>)Zshowz())r   Úgetcwdrg   rh   rd   ÚchdirÚOSErrorrH   Ú	TypeErrorrŽ   ÚabspathrŠ   r   Z_setattr_cmÚsysÚ
contextlibÚredirect_stdoutr   r[   rl   r   rF   Ú
SystemExitr¢   Ú	tracebackÚ
format_exc)r|   r¥   r¦   r§   ÚpwdÚerrrŠ   r   r   r   r¤   Û  sj   	þ€þ€ÿ
ÿ
þÿ
€ý€€ÿ€(èççr¤   Tc                 C   s&   |rt  d¡ t ¡  tj | ¡ d S )NÚall)ÚpltÚcloserj   Zrc_file_defaultsZrcParamsÚupdate)rb   r»   r   r   r   Úclear_state  s   
r½   c                 C   s¸   ddddœ}g }| j }|D ]L}t|tƒr7d|v r+| d¡\}}| t|ƒt|ƒf¡ q| || |d¡f¡ qt|ttfƒrTt	|ƒdkrT| t|d ƒt|d ƒf¡ qt
d| ƒ‚|S )	NéP   éÈ   r_   ú:r   r   r€   z)invalid image format "%r" in plot_formats)r^   Ú
isinstancerH   ry   r+   ÚintÚgetÚtupleÚlistÚlenr¢   )rh   Zdefault_dpir‹   r^   r‘   ÚsuffixÚdpir   r   r   Úget_plot_formats  s   
 rÉ   Fc
                 C   sÜ  t |ƒ}
t| ƒ\}}d}t||ƒ}|
D ]\}}|s#t|| |¡|	dr'd} n|j |¡ q|r6| |gfgS g }d}t|ƒD ]\\}}g }t 	¡ D ]F}t
|ƒdkr[td|||f |ƒ}n	td||f |ƒ}|
D ]\}}|svt|| |¡|	drzd} n|j |¡ qf|s‰|dk} n| |¡ qH|s“ n| ||f¡ q>|rŸ|S g }|r¥tni }|r²t|jƒ t ¡  | p¶|}t|ƒD ]¡\}}|rÄ|jrËt|j|ƒ n|rÒt d¡ t|rÚt |¡n||||ƒ g }tj ¡ }t|ƒD ]i\}}t
|ƒdkrt
|ƒdkrt||ƒ}nt
|ƒdkrtd||f |ƒ}n
td|||f |ƒ}| |¡ |
D ].\}}z|jjj| |¡|d	 W n tyK } ztt ¡ ƒ|‚d
}~ww |j |¡ q%që| ||f¡ q»|rd|jrlt|j| d |S )z™
    Run a pyplot script and save the images in *output_dir*.

    Save the images under *output_dir* with file names derived from
    *output_base*
    T)r    Fr€   z%s_%02d_%02dz%s_%02dr   r¹   )rÈ   N)r»   )rÉ   r   r‡   r¡   r   r‹   r+   Ú	enumerateÚ	itertoolsÚcountrÆ   Úplot_contextr½   rb   Úclearrc   rº   r»   r¤   r   Úscript_from_examplesr
   ZGcfZget_all_fig_managersZcanvasr%   ZsavefigrF   r¢   rµ   r¶   )r|   r¥   Z
output_dirÚoutput_baser=   r§   rh   Úcontext_resetÚ
close_figsÚcode_includesr‹   r…   Zcode_piecesZ
all_existsÚimgr<   rÈ   ÚresultsÚiÚ
code_pieceÚimagesÚjr‘   r¦   Zfig_managersZfigmanr¸   r   r   r   Úrender_figures)  sœ   

ÿÿÿ



þ
ÿ
€ÿûrÚ   c           3      C   s¨  |j }|jjj}d|v }t|ƒ}	|	d d }
| d|j¡ d|v r+dg|d  |d< n| ddg¡ d|v }|s:d n|d }|jd }tj	 
|¡}t| ƒrž|js`tj	 tjjjt | d ¡¡}ntj	 tj|jt | d ¡¡}d |¡}d	|v r‚|r~td
ƒ‚|d	 }t| ƒdkr| d }nd }t|ƒjdd}tj	 |¡}n5|}t d tt|ƒ¡¡}|j dd¡d }||jd< tj	 tj	 |¡¡\}}d||f }d }| d	d¡}tj	 |¡\}}|dv râ|}nd}| dd¡}t |ƒ}d|v rý|d dkrûd}nd}t!|tjƒ}tj	 
|¡ "tj	j#¡}tj	 tj	 
tjj$¡d|¡}tj	 %|¡}tj&|dd tj	 'tj	 tjjj(|¡¡}tj&|dd tj	 t!tj|ƒ|¡ tj	j#d¡}zt!||ƒ tj	j#d¡}W n tyh   |}Y nw |d | | }zdd„ |j j)D ƒ} W n t*y–   dd„ |j+j,D ƒ}!d d„ |!D ƒ} Y nw z|  -|¡ W n
 ty¨   Y nw zt.||||||||d!k|d"k| d#
}"g }#W n, t/yë }$ z|j0j1}%|%j2dd$ 3|||$¡|d%}&|g fg}"|&g}#W Y d }$~$nd }$~$ww dd d&d'„ | 4d¡D ƒ¡ }g }'t5|"ƒD ]t\}(\})}*|d r)|rdg|) 6¡ ¢}+nd(dgt 7|)d)¡ 6¡ ¢}+d |+¡},nd},|r0g }*d*d„ | ,¡ D ƒ}-|(dkrE|j8rE|}.nd }.t9 :|j;pNt<¡j=|
|||.t|*ƒdk|-|*|,|j>oct|*ƒ|d+
}/|' ?|/ 4d¡¡ |' ?d¡ q|'r€|j@|'|d, t|ƒjAddd- |"D ])\})}*|*D ]!}0|0 B¡ D ]}1tj	 |tj	 |1¡¡}2|1|2kr¯tC D|1|2¡ q—q‘q‹|j8rÒt||| ƒjE||krÍ|rÍtF G|¡n|dd |#S ).Nr>   r   r;   r:   zplot-directiver=   Úsourcerx   r&   zGCaption specified in both content and options. Please remove ambiguity.r   r€   zutf-8)r!   Z_plot_counterz%s-%d.pyrw   )z.pyz.rstz.txtÚ.ú-r<   r   FTZplot_directiverP   ú/c                 S   s"   g | ]}t j t  ¡ |d  ¡‘qS ©r   )r   rŽ   rƒ   r¬   ©r   Útr   r   r   r“     s    ÿzrun.<locals>.<listcomp>c                 S   s    h | ]}t j tj|d  ¡’qS rß   )r   rŽ   rƒ   rg   ri   rà   r   r   r   Ú	<setcomp>	  s    ÿzrun.<locals>.<setcomp>c                 S   s   g | ]
}t j |¡r|‘qS r   )r   rŽ   Úisfiler›   r   r   r   r“     s    

ÿr   r   )rÑ   rÒ   rÓ   z.Exception occurred in plotting {}
 from {}:
{})r}   c                 s   s    | ]	}d |  ¡  V  qdS )z      N)r   )r   r}   r   r   r   rž   *  s   € ÿzrun.<locals>.<genexpr>z.. code-block:: pythonz    c                 S   s$   g | ]\}}|d v rd||f ‘qS ))r5   r6   r7   r8   r9   r:   z:%s: %sr   )r   ÚkeyÚvalr   r   r   r“   =  s    þ
ÿ)
Údefault_fmtÚdest_dirÚ	build_dirÚsource_linkZmulti_imagerB   rØ   Úsource_codeZhtml_show_formatsr&   )rÛ   )ÚparentsrQ   )Hr0   r,   r-   rh   rÉ   Ú
setdefaultr\   Z
attributesr   rŽ   rŠ   rÆ   r`   rƒ   rg   r/   rR   Zsrcdirr   Zuriri   r   r   Z	read_textr‰   ÚtextwrapÚdedentÚmaprH   rÃ   ÚsplitextÚreplacerv   r   ÚlstripÚsepZ
doctreedirÚnormpathÚmakedirsr°   rS   Zinclude_logÚAttributeErrorZinput_linesr)   r*   rÚ   r¢   ZmemoÚreporterZsystem_messager<   ry   rÊ   Ú
splitlinesÚindentr]   Újinja2ZTemplatere   ÚTEMPLATEZrenderra   ÚextendZinsert_inputrT   r”   rU   ÚcopyfileZ
write_textr   rÏ   )3r@   rA   rB   rC   rD   rE   r0   rh   r>   r‹   ræ   Zkeep_contextZcontext_optZrst_fileZrst_dirZsource_file_namer&   r§   r|   rÐ   ZcounterÚbaseÚextZ
source_extr…   Zsource_rel_nameZsource_rel_dirrè   rç   Zdest_dir_linkZbuild_dir_linkré   Zsource_file_includesZpossible_sourcesrÕ   Úerrorsr¸   r÷   ZsmZtotal_linesrÙ   r×   rØ   Úlinesrê   ZoptsZsrc_linkÚresultrÔ   ÚfnZdestimgr   r   r   r?   ”  sV  

ÿÿ
ÿ

þÿÿÿý
ÿÿûÿ÷
ÿý
€ù

ÿ
ÿÿ
ö
€ýÿÿÿür?   rˆ   )NN)T)FFN)=rN   r²   r   Úior   rË   r   Úos.pathr   Zpathlibr   ro   rU   r±   rí   rµ   Zdocutils.parsers.rstr   r   Z&docutils.parsers.rst.directives.imagesr   rú   rj   Zmatplotlib.backend_basesr   Zmatplotlib.pyplotZpyplotrº   r	   r
   r   ZuseZ
deprecatedr9   rk   r   r   r   r$   r3   r4   rZ   rg   rv   r~   r‚   r   rû   Zexception_templateÚdictrÍ   r‡   r¡   ÚRuntimeErrorr¢   r¨   r¤   r½   rÉ   rÚ   r?   r   r   r   r   Ú<module>   st     
ÿþ

4


5
ýk